$ rails new stu
$ cd stu
$ bundle install
$ rails server
$ rails g scaffold Student name:text score:decimal description:text
$ rake db:create
$ rake db:migrate
$ rails server
打开config/routes.rb,加入:
$ root 'students#index'
$ rails server
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
$ bundle install
$ rails generate bootstrap:install
$ rails g bootstrap:layout
$ rails g bootstrap:themed Students