Can't find 'jquery-ui' Rails 3.2

左心房为你撑大大i 提交于 2019-11-30 16:29:43

If you are using the jquery-ui-rails gem, you need to use require jquery.ui.all instead of require jquery-ui. If you don't want to use the gem, make sure that you have a jquery-ui.js file in your app/assets/javascripts folder.

UPDATE

As of version 5.0.0, use require jquery.ui.

I tried downgrade jquery-rails on my application, That works fine.

  1. Put gem 'jquery-rails', "~> 2.3.0" to Gemfile
  2. Remove Gemfile.lock -> rm Gemfile.lock
  3. Run bundle install
  4. Put //= require jquery-ui to application.js
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-06-08 13:16:50
 +0700
Compiled jquery-ui.js  (27ms)  (pid 7016)
Compiled application.js  (148ms)  (pid 7016)
Served asset /application.js - 200 OK (213ms)

Could you post your Gemfile ?

mlebre

I had a similar issue. The problem was not related to the existing gems but rather with the cached version of them.

The following steps solved the issue for me:

  1. Specify the actual versions for the affected gems
  2. Clean the asset pipeline by running rake assets:clean
  3. Clean your browser's cache
  4. Start the server again

This process won't be the same for everyone as the issue here is tied to the cached version of the gems, as I've already mentioned.

At least it should help find the solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!