Skip to content

Instantly share code, notes, and snippets.

@dwyn
Last active September 3, 2019 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwyn/26c1953ef97d3df686b75f7f91c18053 to your computer and use it in GitHub Desktop.
Save dwyn/26c1953ef97d3df686b75f7f91c18053 to your computer and use it in GitHub Desktop.
  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