-
Add
gem 'bootstrap'
to your gemfile. -
Add
gem 'jquery-rails'
to your gemfile. -
rename the
application.css
file to application.scss (located in app/assets/stylesheets/application.css) -
Add '@import "bootstrap";` to your application.scss file
-
Add to your application.js file. ( located at app/assets/javascripts/application.js)
//= require jquery3
//= require popper
//= require bootstrap-sprockets
When completed, your application.js file should look like this:
//= require jquery3
//= require popper
//= require bootstrap-sprockets
//= require rails-ujs
//= require activestorage
//= require turbolinks
//= require_tree .
-
Run
bundle install
-
From there, check out Bootstraps documentation for different componenets to add / mix in to your views.