Sha256: bbe4d6cfdf67e4494d09943128516212cef66c3f816078c527ab9289183d4d73
Contents?: true
Size: 1.71 KB
Versions: 3
Compression:
Stored size: 1.71 KB
Contents
# Jquery-rails jQuery! For Rails! So great. Also provided is Sam Ruby's assert_select_jquery function, which is automatically included for use in tests. ## Rails 3.1 This gem vendors jQuery 1.6 and the latest jQuery UJS adapter for Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use. These two lines will be added to the file `app/assets/javascripts/application.js` by default: //= require jquery //= require jquery_ujs If you wish to use jQuery UI as well, you can add this line to `application.js`: //= require jquery-ui In order to use the themed parts of jQuery UI, you will also need to supply your own theme CSS. See [jqueryui.com](http://jqueryui.com) for more information. ### Installation When you generate a new Rails 3.1 app, pass the `-j jquery` option, like this: rails new myapp -j jquery Then run `bundle install`. You're done! ## Rails 3.0 This gem adds a single generator to Rails 3, jquery:install. Running the generator will remove any Prototype JS files you may happen to have, fetch jQuery and the jQuery-ujs driver for Rails, and (optionally) fetch jQuery UI. The gem will also hook into the Rails configuration process, removing Prototype and adding jQuery to the javascript files included by the `javascript_include_tag(:defaults)` call. While the plugin downloads minified and un-minified versions of jQuery and jQuery UI, only the minified versions are included in :default. ### Installation In your Gemfile, add this line: gem "jquery-rails" Then, run `bundle install`. To invoke the generator, run: rails generate jquery:install #--ui to enable jQuery UI --version to install specific version of JQuery (default is 1.6) You're done!
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jquery-rails-1.0.4 | README.md |
jquery-rails-1.0.3 | README.md |
jquery-rails-1.0.2 | README.md |