mirror of
https://github.com/rails/jquery-rails.git
synced 2026-01-09 14:47:55 -05:00
Add small explanation about how to install for Rails 5.1 and up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user