30 May 2013, 15:17
Samr_small_pragsmall

Sam Ruby (584 posts)

jquery-rails just released version 3.0. Most significantly, they removed support for jquery-ui in favor of the jquery-ui-rails gem. Additionally, be aware that jquery-ui-rails names the javascript library files differently than jquery-ui did.

To get up and running with the latest version of jquery-ui-rails, first modify your Gemfile to add the following line:

gem 'jquery-ui-rails'

Save your changes, and then run the following command:

bundle install

Restart your server. Finally, instead of adding a line to require jquery-ui in app/assets/javascripts/application.js, add the following line instead:

//= require jquery.ui.effect-blind

The next beta update will reflect these instructions

26 Jul 2013, 07:58
Generic-user-small

Pierre Karpov (1 post)

Hi, I did all those steps but still the fading does not work. Actually, the selected item’s color changes but it does not fade back.

In the console error I have: “ Timestamp: 7/21/2013 9:49:54 PM Error: ReferenceError: jQuery is not defined Source File: http://localhost:3000/assets/jquery.ui.effect.js?body=1 Line: 1290 “

And “ Timestamp: 7/21/2013 9:49:54 PM Error: ReferenceError: jQuery is not defined Source File: http://localhost:3000/assets/jquery.ui.effect-blind.js?body=1 Line: 85 “

UPDATE: I got it working by putting “//= require jquery.ui.effect-blind” AFTER “//= require jquery”

  You must be logged in to comment