Tag: Rails4/Bootstrap
#gem 'sass-rails', '~> 4.0.2'
gem 'less-rails' gem 'therubyracer' gem 'twitter-bootstrap-rails' #gem 'execjs'
※lessうんたらのエラーがでた場合、次のようにしないとだめかも。
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
bundle install --path vendor/bundle
$ bundle exec rails g bootstrap:install $ bundle exec rails g bootstrap:layout application
@import "twitter/bootstrap/bootstrap"; body { padding-top: 60px; } @import "twitter/bootstrap/responsive";
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the top of the * compiled file, but it's generally better to create a new file per style scope. * *= require bootstrap_and_overrides */
#error_explanation { .alert(); .alert-error(); .alert-block(); } .field_with_errors { .control-group.error(); }