Merge pull request #245 from hartator/patch-1

Add small explanation about how to install for Rails 5.1 and up
This commit is contained in:
Rafael França
2018-01-25 19:15:11 -05:00
committed by GitHub

View File

@@ -31,6 +31,12 @@ The jquery and jquery-ujs files will be added to the asset pipeline and availabl
//= require jquery_ujs
```
If you are running Rails 5.1 and up, `jquery_ujs` is not needed anymore and you can just add:
```js
//= require jquery
```
If you want to use jQuery 2, you can require `jquery2` instead:
```js