$ gem install rails
$ rails new testapp
$ cd testapp
If you would like to serve a local copy of the welcome page for Rails.
$ rails generate controller public
$ cd config
# copy this code into routes.rb
Testapp::Application.routes.draw do
root :to => 'public#index'
end
# find the public/index.html welcome page that used to come in a new app but is now serverd somewhere from rails gem.
$ mkdir ./app/views/public
$ cp ./public/index.html ./app/views/public/index.html.erb
$ rails server
$ firefox http://localhost:3000/