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, 1.4.2 and 1.4.3 can be used. However because of jsbin.com/uboxu3/7/ issue which is present in jQuery 1.4.2 version, it is highly recommended to use jQuery 1.4.3.
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