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.
In your Gemfile, add this line:
bundle install. To invoke the generator, run:
rails generate jquery:install
You're done! Don't forget to output
csrf_meta_tag somewhere inside your
<head> tag in your layout!