https://github.com/rails/jquery-rails
A gem to automate using jQuery with Rails
https://github.com/rails/jquery-rails
Keywords from Contributors
activerecord activejob mvc rubygems rack devise rspec crash-reporting sinatra ruby-gem
Last synced: about 9 hours ago
JSON representation
Repository metadata
A gem to automate using jQuery with Rails
- Host: GitHub
- URL: https://github.com/rails/jquery-rails
- Owner: rails
- License: mit
- Created: 2011-05-24T21:53:58.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2025-10-21T20:23:08.000Z (about 2 months ago)
- Last Synced: 2025-12-07T11:43:42.487Z (5 days ago)
- Language: Ruby
- Homepage:
- Size: 3.96 MB
- Stars: 949
- Watchers: 34
- Forks: 405
- Open Issues: 17
- Releases: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: MIT-LICENSE
README.md
jquery-rails
jQuery! For Rails! So great.
This gem provides:
- jQuery 1, 2 and 3
- the jQuery UJS adapter
- assert_select_jquery to test jQuery responses in Ruby tests
Versions
Starting with v2.1, the jquery-rails gem follows these version guidelines
to provide more control over your app's jQuery version from your Gemfile:
patch version bump = updates to jquery-ujs, jquery-rails, and patch-level updates to jQuery
minor version bump = minor-level updates to jQuery
major version bump = major-level updates to jQuery and updates to Rails which may be backwards-incompatible
See VERSIONS.md to see which versions of jquery-rails bundle which
versions of jQuery.
Installation
Add
gem 'jquery-rails'
to your Gemfile.
The jquery and jquery-ujs files will be added to the asset pipeline and available for you to use. If they're not already in app/assets/javascripts/application.js by default, add these lines:
//= require jquery
//= require jquery_ujs
If you are running Rails 5.1 and up, and if you have included //= require rails-ujs, then jquery_ujs is not needed anymore. You can just add:
//= require jquery
If you want to use jQuery 2, you can require jquery2 instead:
//= require jquery2
//= require jquery_ujs
And if you want to use jQuery 3, you can require jquery3:
//= require jquery3
//= require jquery_ujs
For jQuery UI, we recommend the jquery-ui-rails gem, as it includes the jquery-ui css and allows easier customization.
As of v3.0, jquery-rails no longer includes jQuery UI. Use the
jquery-ui-rails gem above.
Contributing to jquery-rails
jquery-rails is work of many contributors. You're encouraged to submit pull requests, propose
features and discuss issues.
-
If it's an issue pertaining to the jquery-ujs javascript, please report it to the jquery-ujs project.
-
If the jQuery scripts are outdated (i.e. maybe a new version of jquery was released yesterday), feel free to open an issue and prod us to get that thing updated. However, for security reasons, we won't be accepting pull requests with updated jQuery scripts.
See CONTRIBUTING.
License
jquery-rails is released under the MIT License.
Acknowledgements
Many thanks are due to all of the jquery-rails contributors. Special thanks to JangoSteve for tirelessly answering questions and accepting patches, and the Rails Core Team for making jquery-rails an official part of Rails 3.1.
Owner metadata
- Name: Ruby on Rails
- Login: rails
- Email:
- Kind: organization
- Description:
- Website: https://rubyonrails.org/
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/4223?v=4
- Repositories: 116
- Last ynced at: 2023-04-09T03:40:20.529Z
- Profile URL: https://github.com/rails
GitHub Events
Total
- Issues event: 1
- Watch event: 8
- Issue comment event: 3
- Push event: 1
- Create event: 1
Last Year
- Issues event: 1
- Watch event: 6
- Issue comment event: 3
- Push event: 1
- Create event: 1
Committers metadata
Last synced: 7 days ago
Total Commits: 372
Total Committers: 77
Avg Commits per committer: 4.831
Development Distribution Score (DDS): 0.745
Commits in past year: 2
Committers in past year: 1
Avg Commits per committer in past year: 2.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Andre Arko | a****e@a****t | 95 |
| Steve Schwartz | s****e@a****m | 94 |
| Rafael Mendonça França | r****a@g****m | 30 |
| Carlos Antonio da Silva | c****a@g****m | 15 |
| Lucas Mazza | l****a@g****m | 14 |
| Rafael Mendonça França | r****a@p****r | 10 |
| Rob Cameron | c****n@g****m | 10 |
| Akira Matsuda | r****e@d****p | 9 |
| Godfrey Chan | g****c@g****m | 6 |
| Vladislav Petrov | v****v@a****m | 4 |
| robertomiranda | r****r@g****m | 3 |
| Juan Pazmino | j****o@o****m | 3 |
| Ben Atkins | b****s@f****m | 3 |
| Gabe da Silveira | g****e@w****m | 3 |
| Jo Liss | j****2@g****m | 3 |
| José Valim | j****m@g****m | 3 |
| Robert Djurasaj | r****j@g****m | 2 |
| Patrik Bóna | p****a@m****k | 2 |
| Guillermo Iguaran | g****n@g****m | 2 |
| Fudoshiki | f****i@g****m | 2 |
| Franco Catena | f****a@g****m | 2 |
| Nicolas Leger | n****r@n****m | 2 |
| Rodrigo Rosenfeld Rosas | r****s@g****m | 1 |
| Alex Pardoe | d****e@g****m | 1 |
| Andrew Haines | a****w@f****m | 1 |
| Andrey A.I. Sitnik | a****y@s****u | 1 |
| Ben Morse | s****e@g****m | 1 |
| Ben Pickles | s****g@g****m | 1 |
| Benjamin Quorning | b****n@q****t | 1 |
| Chris Kim | c****m@g****m | 1 |
| and 47 more... | ||
Committer domains:
- plataformatec.com.br: 2
- techbang.com.tw: 1
- webflows.fr: 1
- nothingconcept.com: 1
- quicksoft.it: 1
- outfarm.com: 1
- quorning.net: 1
- sitnik.ru: 1
- fiatinsight.com: 1
- nleger.com: 1
- mrhead.sk: 1
- websaviour.com: 1
- fullbridge.com: 1
- agilefusion.com: 1
- dio.jp: 1
- alfajango.com: 1
- jetthoughts.com: 1
- extractablemedia.com: 1
- suse.de: 1
- bitsweat.net: 1
- henryphan.com: 1
- fachschaften.org: 1
- attrition.org: 1
- mazurek.me: 1
- jonathanmoss.me: 1
- arkxu.com: 1
- neighborland.com: 1
- sanityinc.com: 1
- scottgrimmett.id.au: 1
- intertwingly.net: 1
- philosof.dk: 1
- ereslibre.es: 1
- arko.net: 1
Issue and Pull Request metadata
Last synced: 19 days ago
Total issues: 59
Total pull requests: 49
Average time to close issues: 3 months
Average time to close pull requests: about 2 months
Total issue authors: 54
Total pull request authors: 43
Average comments per issue: 2.41
Average comments per pull request: 1.94
Merged pull request: 24
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
Past year pull requests: 1
Past year average time to close issues: N/A
Past year average time to close pull requests: 9 minutes
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- Sega100500 (5)
- ritikesh (2)
- Seventhstar (1)
- pandamouse (1)
- lafeber (1)
- burtondav (1)
- kirykr (1)
- hww (1)
- hariyerramsetty (1)
- sithara (1)
- tricknotes (1)
- dennisvandehoef (1)
- edjarris (1)
- jonleighton (1)
- abstracthat (1)
Top Pull Request Authors
- juank-pa (4)
- udaykadaboina (2)
- nicolasleger (2)
- msathieu (2)
- kaspth (1)
- andrewhaines (1)
- JamesChevalier (1)
- cannikin (1)
- aditya-kapoor (1)
- amalrik (1)
- dessita (1)
- roggervalf (1)
- ScottGrimmett (1)
- the-rails-coach (1)
- repinel (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 7
-
Total downloads:
- rubygems: 573,726,193 total
- Total docker downloads: 192,397,360
- Total dependent packages: 1,569 (may contain duplicates)
- Total dependent repositories: 576,665 (may contain duplicates)
- Total versions: 236
- Total maintainers: 16
- Total advisories: 12
gem.coop: jquery-rails
This gem provides jQuery and the jQuery-ujs driver for your Rails 4+ application.
- Homepage: https://github.com/rails/jquery-rails
- Documentation: http://www.rubydoc.info/gems/jquery-rails/
- Licenses: MIT
- Latest release: 4.6.1 (published about 2 months ago)
- Last Synced: 2025-12-09T11:32:35.253Z (3 days ago)
- Versions: 79
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 286,793,049 Total
- Docker Downloads: 96,198,680
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Downloads: 0.085%
- Average: 0.158%
- Docker downloads count: 0.547%
- Maintainers (14)
- Advisories:
rubygems.org: jquery-rails
This gem provides jQuery and the jQuery-ujs driver for your Rails 4+ application.
- Homepage: https://github.com/rails/jquery-rails
- Documentation: http://www.rubydoc.info/gems/jquery-rails/
- Licenses: MIT
- Latest release: 4.6.1 (published about 2 months ago)
- Last Synced: 2025-12-09T13:11:12.388Z (3 days ago)
- Versions: 79
- Dependent Packages: 1,568
- Dependent Repositories: 576,659
- Downloads: 286,804,474 Total
- Docker Downloads: 96,198,680
-
Rankings:
- Dependent repos count: 0.025%
- Dependent packages count: 0.032%
- Downloads: 0.07%
- Average: 0.689%
- Docker downloads count: 0.756%
- Forks count: 1.306%
- Stargazers count: 1.946%
- Maintainers (14)
-
Advisories:
- Duplicate Advisory: jQuery Cross Site Scripting vulnerability
- Cross-Site Scripting in jquery
- Potential XSS vulnerability in jQuery
- XSS in jQuery as used in Drupal, Backdrop CMS, and other products
- Duplicate Advisory: Prototype Pollution in jquery
- Cross-Site Scripting (XSS) in jquery
- jquery-rails and jquery-ujs subject to Exposure of Sensitive Information
gem.coop: jquery-knob-rails
This gem provides the jQuery Knob plugin for your Rails 4+ application.
- Homepage: https://github.com/rails/jquery-rails
- Documentation: http://www.rubydoc.info/gems/jquery-knob-rails/
- Licenses: MIT
- Latest release: 1.2.13 (published almost 9 years ago)
- Last Synced: 2025-12-07T18:02:45.738Z (4 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 61,672 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 4.206%
- Downloads: 12.619%
- Maintainers (1)
proxy.golang.org: github.com/rails/jquery-rails
- Homepage:
- Documentation: https://pkg.go.dev/github.com/rails/jquery-rails#section-documentation
- Licenses: mit
- Latest release: v4.6.1+incompatible (published about 2 months ago)
- Last Synced: 2025-12-07T18:02:47.368Z (4 days ago)
- Versions: 74
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 1.421%
- Stargazers count: 2.076%
- Average: 5.969%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
rubygems.org: jquery-knob-rails
This gem provides the jQuery Knob plugin for your Rails 4+ application.
- Homepage: https://github.com/rails/jquery-rails
- Documentation: http://www.rubydoc.info/gems/jquery-knob-rails/
- Licenses: MIT
- Latest release: 1.2.13 (published almost 9 years ago)
- Last Synced: 2025-12-07T18:02:45.821Z (4 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 5
- Downloads: 61,672 Total
-
Rankings:
- Forks count: 1.266%
- Stargazers count: 1.904%
- Average: 8.109%
- Dependent repos count: 9.912%
- Downloads: 11.886%
- Dependent packages count: 15.579%
- Maintainers (1)
gem.coop: wj-jquery-rails
This gem provides jQuery and the jQuery-ujs driver for your Rails 4+ application.
- Homepage: https://github.com/rails/jquery-rails
- Documentation: http://www.rubydoc.info/gems/wj-jquery-rails/
- Licenses: MIT
- Latest release: 4.2.2.1 (published almost 8 years ago)
- Last Synced: 2025-12-07T18:02:45.437Z (4 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 2,663 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Forks count: 1.418%
- Stargazers count: 2.035%
- Average: 18.768%
- Downloads: 90.388%
- Maintainers (1)
rubygems.org: wj-jquery-rails
This gem provides jQuery and the jQuery-ujs driver for your Rails 4+ application.
- Homepage: https://github.com/rails/jquery-rails
- Documentation: http://www.rubydoc.info/gems/wj-jquery-rails/
- Licenses: MIT
- Latest release: 4.2.2.1 (published almost 8 years ago)
- Last Synced: 2025-12-07T18:02:45.433Z (4 days ago)
- Versions: 1
- Dependent Packages: 1
- Dependent Repositories: 1
- Downloads: 2,663 Total
-
Rankings:
- Forks count: 1.266%
- Stargazers count: 1.904%
- Dependent packages count: 7.656%
- Dependent repos count: 21.795%
- Average: 25.102%
- Downloads: 92.889%
- Maintainers (1)
Dependencies
- mime-types < 3 development
- json ~> 1.8.0
- json >= 2
- nokogiri ~> 1.6.0
- nokogiri >= 0
- rack >= 0
- rack ~> 1.6
- rails >= 0
- rails ~> 4.2.0
- rails-dom-testing >= 1, < 3
- railties >= 4.2.0
- thor >= 0.14, < 2.0
Score: 31.674578950956587