File tree Expand file tree Collapse file tree 1 file changed +6
-20
lines changed Expand file tree Collapse file tree 1 file changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -31,33 +31,19 @@ gem 'jquery-rails'
31
31
32
32
And run:
33
33
34
- $ bundle install
35
-
36
- This next step depends on your version of Rails.
37
-
38
- a. For Rails 3.1, add these lines to the top of your app/assets/javascripts/application.js file:
39
-
40
- ``` javascript
41
- // = require jquery
42
- // = require jquery_ujs
34
+ ``` shell
35
+ $ bundle install
43
36
```
44
37
45
- b. For Rails 3.0, run this command:
46
-
47
- * Be sure to get rid of the rails.js file if it exists, and instead use
48
- the new jquery_ujs.js file that gets copied to the public directory.
49
- Choose to overwrite jquery_ujs.js if prompted.*
50
-
51
- $ rails generate jquery:install
52
-
53
- c. For Rails 2.x and for manual installation follow [ this wiki] ( https://github.com/rails/jquery-ujs/wiki/Manual-installing-and-Rails-2 ) .
54
-
55
38
Installation using Bower
56
39
------------
57
40
58
41
Run ` bower install jquery-ujs --save ` to install the jquery-ujs package.
59
42
60
- For Rails 3.1 and above, add these lines to the top of your app/assets/javascripts/application.js file:
43
+ Usage
44
+ ------------
45
+
46
+ Require both ` jquery ` and ` jquery-ujs ` into your application.js manifest.
61
47
62
48
``` javascript
63
49
// = require jquery
You can’t perform that action at this time.
0 commit comments