Unobtrusive jQuery with Rails 3
Add this line to your Gemfile:
Run this command:
$ rails generate jquery:install # --ui if you want jQuery UI
There is no step three.
jQuery 1.4, 1.4.1 and 1.4.2 can be used. However because of jsbin.com/uboxu3/7/ issue it is recommended to use jQuery 1.4.1.
Step 3 (optional)
$ gem install bundler $ bundle install
$ bundle exec ruby test/server.rb
Visit localhost:4567 and all the tests should pass. If you want to change any settings then change the settings at the top of test/public/test/settings.js