Ruby: How to Install Rails

http://rubyonrails.org/download/

gem install rails
install devkit (google for install commands)
Create your application skeleton and start the server:

rails new path/to/your/new/application
cd path/to/your/new/application

rails server

You’re running Ruby on Rails! Follow the instructions on  http://localhost:3000