Skip to content
brewpoo edited this page Mar 21, 2012 · 7 revisions

First, update your bundle via

bundle update

and run install generator

rails g bootstrap:install

So you have to require "bootstrap_and_overrides" file in your application.css.

Change the line;

*= require twitter/bootstrap 

in application.css to

*= require bootstrap_and_overrides

This file imports Bootstrap and responsive styles for you (Responsive module is separated.)

If you'd like to alter Bootstrap's own variables, or define your LESS styles inheriting Bootstrap's mixins, you can do so inside bootstrap_and_overrides.css.less:

@linkColor: #ff0000;

After upgrading

You may need to force a recompile of the less files. Make a change to bootstrap_and_overrides.css.less or touch the file and restart your server.

For detailed steps please check README file; https://github.com/seyhunak/twitter-bootstrap-rails/blob/master/README.md