Skip to content

Commit 97c28b1

Browse files
committed
Simplify bower installation steps
1 parent 658590c commit 97c28b1

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Requirements
2020

2121
If you don't use HTML5, adding "data" attributes to your HTML4 or XHTML pages might make them fail [W3C markup validation][validator]. However, this shouldn't create any issues for web browsers or other user agents.
2222

23-
Installation using the jQuery-Rails Gem
23+
Installation using the jquery-rails gem
2424
------------
2525

2626
For automated installation in Rails, use the "jquery-rails" gem. Place this in your Gemfile:
@@ -55,24 +55,13 @@ c. For Rails 2.x and for manual installation follow [this wiki](https://github.c
5555
Installation using Bower
5656
------------
5757

58-
Modify your bower.json file and add jQuery-UJS as a dependency as follows:
59-
60-
```javascript
61-
{
62-
"dependencies": {
63-
/* include jQuery-UJS as below */
64-
"jquery-ujs": "[email protected]:rails/jquery-ujs.git"
65-
}
66-
}
67-
```
68-
69-
Then run `bower install jquery-ujs` to install the jQuery-UJS package.
58+
Run `bower install jquery-ujs --save` to install the jquery-ujs package.
7059

7160
For Rails 3.1 and above, add these lines to the top of your app/assets/javascripts/application.js file:
7261

7362
```javascript
7463
//= require jquery
75-
//= require jquery-ujs/src/rails
64+
//= require jquery-ujs
7665
```
7766

7867
How to run tests

0 commit comments

Comments
 (0)