Skip to content

Commit 9766e03

Browse files
authored
Merge pull request twbs#1141 from ltfschoen/patch-1
Update README.md advising use of jquery-rails
2 parents 5d6b2eb + 1ef3411 commit 9766e03

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ Then, remove all the `*= require_self` and `*= require_tree .` statements from t
5151

5252
Do not use `*= require` in Sass or your other stylesheets will not be [able to access][antirequire] the Bootstrap mixins or variables.
5353

54+
Bootstrap JavaScript depends on jQuery.
55+
If you're using Rails 5.1+, add the `jquery-rails` gem to your Gemfile:
56+
57+
```ruby
58+
gem 'jquery-rails'
59+
```
60+
61+
```console
62+
$ bundle install
63+
```
64+
5465
Require Bootstrap Javascripts in `app/assets/javascripts/application.js`:
5566

5667
```js

0 commit comments

Comments
 (0)