Type the bootstrap code in the gemfile gem 'bootstrap', '~>4.4.1' gem 'jquery-rails'
Type the following code in lines 13-19 of application.js
//= require rails-ujs //= require activestorage //= require turbolinks //= require_tree . //= require jquery3 //= require popper //= require bootstrap-sprockets
Type the following code in the first line of application.css @import "bootstrap";
Change application.css to application.scss
Write css under @import
If you get the following error RuntimeError in StaticPages#contact <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
Type the following code in the last line of the boot.rb folder ENV['EXECJS_RUNTIME'] = 'Node'
Recommended Posts