-
-
Notifications
You must be signed in to change notification settings - Fork 998
Installing using LESS
toadkicker edited this page Sep 20, 2014
·
1 revision
The Twitter Bootstrap Rails gem can provide the Bootstrap stylesheets in two ways.
The plain CSS way is how Bootstrap is provided on the official website.
The Less way provides more customization options, like changing theme colors, and provides useful Less mixins for your code, but requires the Less gem.
To use Less stylesheets, you'll need the less-rails gem.
Include these lines in the Gemfile to install the gems from RubyGems.org:
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
Then run bundle install
from the command line:
bundle install
Then run the bootstrap generator to add Bootstrap includes into your assets:
rails generate bootstrap:install less
If you need to skip coffeescript replacement into app generators, use:
rails generate bootstrap:install less --no-coffeescript