Add small explanation about how to install for Rails 5.1 and up

This commit is contained in:
hartator
2017-06-09 15:47:48 -05:00
committed by GitHub
parent 6eb084e599
commit 9dbbaa35dd

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