インストール
GemFileに下記を追加。
gem 'twitter-bootstrap-rails'
bundle install
rails g bootstrap:install
insert app/assets/javascripts/application.js
create app/assets/javascripts/bootstrap.js.coffee
create app/assets/stylesheets/bootstrap_and_overrides.css.less
gsub app/assets/stylesheets/application.css
gsub app/assets/stylesheets/application.css
レイアウト作成
全体のレイアウトを可変で作成する。
rails generate bootstrap:layout application fluid
scaffold
普通にscaffoldする。
rails g scaffold Product title:string description:text price:decimal
rake db:migrate
作成されたレイアウトにTwitterBootstrapを適用。
rails g bootstrap:themed Products