Sha256: 658c1a99ca296b044cebc446f5340bbf8958355ce071ce9f3d98eaf26c1ff120

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

# Jquery-rails

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.4.2)

You're done! Don't forget to output `csrf_meta_tag` somewhere inside your `<head>` tag in your layout!

### Edge rails

If you're using edge Rails, everything should just work starting with version 0.2.2. If it's not working, try running `bundle update jquery-rails`, or change your Gemfile to read `gem "jquery-rails", "~>0.2"`.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jquery-rails-0.2.6 README.md
jquery-rails-0.2.5 README.md
jquery-rails-0.2.4 README.md
jquery-rails-0.2.3 README.md