I believe this gem only works with Rails 3. I’ve only tested it with Rails 3.
The generator of the current version of jquery-rails v. 0.26 will download and install JQuery 1.4.2. However, the latest version of JQuery is 1.4.4.
jquery-rails’s generator allows you to specify the version of JQuery to download and install via the –version flag.
- Install jquery-rails gem
gem install jquery-rails
- Add gem jquery-rails to your Gemfile
- Install jquery-rails via Bundler
rails generate jquery:install --version=1.4.4
Leave a Reply