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.
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.
Next, open a command prompt and type: gem
install rails --include-dependencies
When completed, you should see something like this:
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).
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.
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