I tried to code the EC site I made in the past and tried to install bootstrap, so I posted it as a memo.
gem 'bootstrap-sass', '~> 3.3.6' gem 'jquery-rails'
And run bundle install Please check the version of bootstrap-sass on the following page to suit your environment. https://rubygems.org/gems/bootstrap-sass/versions/3.4.1?locale=ja
application.css Change application.css to application.scss and make it application.scss
@import "bootstrap-sprockets"; @import "bootstrap";
//= require jquery //= require bootstrap-sprockets
Fill in additionally
Now you can use Bootstrap as you like. It's easy to get satisfied with writing the bootstrap description in the Gemfile and forget to write it in the scss file or js file.