『twitter-bootstrap-rails』っていうのを見つけたのでやってみた。
- http://rubygems.org/gems/twitter-bootstrap-rails
- http://twitter.github.com/bootstrap/
- デザインが苦手なWebサービス開発者に朗報!今風のデザインがさくっと作れる『Twitter Bootstrap』が凄まじく充実している件 | IDEA*IDEA
『less-rails-bootstrap』ってのもある*1
Installing Gem
Gemfileに以下追加
Gemfile
gem 'twitter-bootstrap-rails'
terminal
bundle install
Installing to App (using Generators)
terminal
rails g bootstrap:install
とりあえず app/views/layouts/application.html.erb を使ってやってみる。
rails g bootstrap:layout application fixed
「Overwrite ~ 」と上書きするかと訊ねてくるので『Y』押してリターン。
webブラウザで確認
Twitter Bootstrap 適用前と後。
*1:追加:20120108