rails active admin部署:找不到文件'jquery-ui' [英] rails active admin deployment : couldn't find file 'jquery-ui'

查看:91
本文介绍了rails active admin部署:找不到文件'jquery-ui'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试使用capistrano进行部署时,当capistrano使用命令
bundle exec rake

when trying to deploy with capistrano, when capistrano use command bundle exec rake

    RAILS_ENV=production 
    RAILS_GROUPS=assets 
    assets:precompile

我有此错误

couldn't find file 'jquery-ui'
  (in /home/umbrosus/.rvm/gems/ruby-1.9.3-p392@gancxadebebi/gems/activeadmin-0.5.1/app/assets/javascripts/active_admin/base.js:2)

在运行良好之前,但我尝试将其更新为0.6,然后开始出现此错误。我回到0.5.1,错误仍然存​​在。我做不好的事吗?

Before it was working well, but I tried to update to 0.6 and then I started to have this error. I came back to 0.5.1 and the error is still there. Do I do something bad ?

谢谢

推荐答案

-rails gem最近删除了jQuery UI。

The "jquery-rails" gem recently removed jQuery UI.

https: //github.com/rails/jquery-rails/commit/2fdcdb2633cbc6426d412c050200fc31d14b9a3b

他们建议使用jquery-ui-rails gem。

They recommend using the jquery-ui-rails gem.

有一个主动拉取请求(截至撰写本文时)要添加那个宝石作为依赖。但是,ActiveAdmin的开发人员表示,他们正在 将其锁定,直到我们正式放弃对Rails 3.0的支持。他们锁定的版本是 jquery-rails< 3.0.0

There is an active pull request (as of this writing) to add that gem as a dependency. However, the developers of ActiveAdmin have stated that they are "locking it down until we officially drop support for Rails 3.0". The version they are locked to is jquery-rails < 3.0.0.

与此同时,只需修改Gemfile:

In the meantime, just modify your Gemfile:

gem jquery-ui-rails 不推荐,请参见下面的@Kevin评论

或者您可以降级jquery-rails的版本:

Or you can downgrade your version of jquery-rails:

gem "jquery-rails", "< 3.0.0"

或者您可以从他们的Github主分支中拉取。他们已应用了临时修复程序。

Or you can pull from their Github master branch. They have applied a temporary fix.

gem "activeadmin", github: "gregbell/active_admin"

这篇关于rails active admin部署:找不到文件'jquery-ui'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆