Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
  1. Add gem 'bootstrap' to your gemfile.

  2. Add gem 'jquery-rails' to your gemfile.

  3. rename the application.css file to application.scss (located in app/assets/stylesheets/application.css)

  4. Add '@import "bootstrap";` to your application.scss file

  5. 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 .
  1. Run bundle install

  2. From there, check out Bootstraps documentation for different componenets to add / mix in to your views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment