diff options
author | Luke Schoen <ltfschoen@users.noreply.github.com> | 2017-09-28 09:06:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-28 09:06:41 +0300 |
commit | 1ef34115ea7aee67463a906ba371e3b2ce1902cd (patch) | |
tree | 607093f2b55357199077bcbba06ee540e5434afc | |
parent | 5d6b2ebba0c2a5885ce2f0e01e9218db3d3b5e47 (diff) |
Update README.md advising use of jquery-rails
Users running Rails 5.1+ are required to also add jquery-rails to their Gemfile otherwise missing jquery dependency occurs. The other Bootstrap 4 version already includes this instruction in its readme file [here on line 47](https://github.com/twbs/bootstrap-rubygem/blob/master/README.md)
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -51,6 +51,17 @@ Then, remove all the `*= require_self` and `*= require_tree .` statements from t Do not use `*= require` in Sass or your other stylesheets will not be [able to access][antirequire] the Bootstrap mixins or variables. +Bootstrap JavaScript depends on jQuery. +If you're using Rails 5.1+, add the `jquery-rails` gem to your Gemfile: + +```ruby +gem 'jquery-rails' +``` + +```console +$ bundle install +``` + Require Bootstrap Javascripts in `app/assets/javascripts/application.js`: ```js |