Skip to content

A basic rails 5.2 app working with bootstrap 4.x – As part of a StackOverflow answer

Notifications You must be signed in to change notification settings

HoracioChavez/bootstrap-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails 5.2 with Bootstrap 4.x

A super simple rails app to show how to implement bootstrap 4. These steps worked on macOS. Please, submit a Pull Request if you find something needed for other OS.

1) Gemfile

# Add these gems. Rails is not including jQuery by default.
# You need to include it to use all bootstrap options.
gem 'bootstrap'
gem 'jquery-rails'

2) app/assets/javascripts/application.js
jquery3, popper, and bootstrap are the ones for bootstrap

//= require jquery3
//= require popper
//= require bootstrap

//= require rails-ujs
//= require activestorage
//= require turbolinks
//= require_tree .

3) app/assets/stylesheets/application.scss

@import 'bootstrap';

4) Run bundle and restart your server

About

A basic rails 5.2 app working with bootstrap 4.x – As part of a StackOverflow answer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published