-
Set up new rails project if not done so yet
-
In the gemfile:
gem 'bootstrap-sass', '~> 3.3.6'
gem 'sass-rails', '>= 3.2'
- In the command line:
bundle install
- In app > assets > stylesheets > application.css: rename to application.scss OR application.sass (if you want to use sass) add below comments section (after */):
@import "bootstrap-sprockets";
@import "bootstrap";
(if you are using application.sass, get rid of the ';' after each line and MAKE SURE there is no indentation)
- In app > assets > javascripts > appplication.js:
//= require jquery
//= require bootstrap-sprockets
- In app > views > layouts > application.html.erb, in the tag:
<meta name="viewport" content="width=device-width, initial-scale=1">