Installing Rails on Windows XP Pro
Now that you have Ruby installed (if not, go to the previous article) let's install Rails. To do this we will need RubyGems. Go to http://www.rubyonrails.com/down and select the Zip link in the Ruby Gems section.

Getting RubyGems

After expanding the zip into a folder, open that folder and double click on the setup.rb file. This file is a Ruby executable that will run the setup of
RubyGems for you.

Select setup.rb

Next, open a command prompt and type: gem install rails --include-dependencies

Installing Rails

When completed, you should see something like this:

Output of rails inatallation

Then, navigate to the ruby directory, create a subdirectory entitled rails (or whatever you want to call it), and at the prompt type rails [AppnameHere] (I typed demo for my web application name).

Creating the demo app

Navigate to the demo (or what you named your app) directory that was created by rails. If you look in the app directory you will note a directory name script. The script directory contains a number of utility scripts. Next, we will use the server script to start the new demo app with the Ruby based web server named WEBrick. The WEBrick web server is part of the previous install.

Start WEBrick server

As you can see from the screen capture above, the WEBrick web server is started on port 3000.

Finally, open a web browser and navigate to http://localhost:3000

We have Rails!!

Now see, that was not painful.

Valid XHTML 1.0 Transitional