1. Add the bootstrap-sass gem to the project GEMFILE
gem 'bootstrap-sass'

2. Bundle Install  to install the gem:

bundle install

3. Add the following input directives to any of the .css.scss files in the "stylesheets" folder of the asset pipeline. (I usually create a dedicated file for this purpose).

@import "bootstrap-sprockets";
@import "bootstrap";

4. To utilise the bootstrap javascript libraries, (you'll require this for things like drop down menus etc.), you'll need to include the line, (I just put in the main application.js file):

= require bootstrap

SNAGHTML8cab4a

You're Done!

Tip: Remember that scaffolding code will create a default set of css and js files that can conflict with bootstrap styling. If in doubt delete the bootstapped files.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s