Install Ruby, RubyGems, Rails, and the Ruby/Rails Oracle library
There are two pieces of software you’ll need in order to use Rails on Windows XP: the Ruby programming language with RubyGems installation package, Rails 2.3.2(the latest version of Rails), and the Ruby/Rails Oracle database library. To download and install Ruby with the Gems package installer, do the following:
- Go to http://rubyinstaller.rubyforge.org/.
- Download the “One-Click Ruby Installer for Windows 1.8.6-26 Final Release”.
- Follow the installation instructions.
Once the Ruby programming platform is installed you can use RubyGems, a Ruby application that allows you to install Ruby frameworks very easily. To install the Rails application development framework, first you need to update RubyGems because Rails 2.3.2 requires RubyGems 1.3.1 (or higher):
C:\> gem update --system
Then install Rails:
C:\> gem install rails -v 2.3.2
Now that you have Ruby, RubyGems, and Rails installed, you can install a specialized code library that will allow your Ruby/Rails applications to talk to your Oracle database server. To install Ruby Oracle library and ActiveRecord Oracle Adapter, execute the following commands:
C:\> gem install ruby-oci8 -v 1.0.4
C:\> gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org
Another choice for the ActiveRecord Oracle Adapter is the ActiveRecord Oracle enhanced adapter busily maintained by Oracle ACE Raimonds Simanovskis. This adapter contains useful additional features for working with new and legacy Oracle databases which are extracted from real projects’ patches for the original ActiveRecord Oracle adapter (activerecord-oracle-adapter), and supports three major Ruby interpreters (MRI 1.8.6, JRuby 1.1.6 and Ruby/YARV 1.9.1). To install ActiveRecord Oracle enhanced adapter, execute the following command:
C:\> gem install activerecord-oracle_enhanced-adapter
Assuming that everything went smoothly, you have now installed Ruby, Rails, and the Rails-Oracle connection library. You are now ready to create your first Ruby on Rails Web application.
source: http://www.oracle.com/technology/pub/articles/haefel-oracle-ruby.html