Skip to content

Commit

Permalink
Update README.md advising use of jquery-rails
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
ltfschoen authored Sep 28, 2017
1 parent 5d6b2eb commit 1ef3411
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ef3411

Please sign in to comment.