rails 活动管理员部署:找不到文件“jquery-ui" [英] rails active admin deployment : couldn't find file 'jquery-ui'
问题描述
尝试使用 capistrano 部署时,当 capistrano 使用命令时捆绑执行耙
RAILS_ENV=生产RAILS_GROUPS=资产资产:预编译
我有这个错误
找不到文件'jquery-ui'(在/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 并且错误仍然存在.我做错了什么吗?
谢谢
jquery-rails" gem 最近移除了 jQuery UI.
https://github.com/rails/jquery-rails/commit/2fdcdb2633cbc621c205d>
他们推荐使用 jquery-ui-rails gem.
有一个主动拉取请求(在撰写本文时)可以将该 gem 添加为依赖项.但是,ActiveAdmin 的开发人员表示他们将其锁定,直到我们正式停止对 Rails 3.0 的支持".他们被锁定的版本是 jquery-rails <3.0.0
.
与此同时,只需修改您的 Gemfile:
gem "jquery-ui-rails" 不推荐,见下面@Kevin 的评论
或者你可以降级你的 jquery-rails 版本:
gem "jquery-rails", "<3.0.0"
或者你可以从他们的 Github 主分支中拉取.他们应用了临时修复.
gem "activeadmin", github: "gregbell/active_admin"
when trying to deploy with capistrano, when capistrano use command bundle exec rake
RAILS_ENV=production
RAILS_GROUPS=assets
assets:precompile
I have this error
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)
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 ?
thanks
The "jquery-rails" gem recently removed jQuery UI.
https://github.com/rails/jquery-rails/commit/2fdcdb2633cbc6426d412c050200fc31d14b9a3b
They recommend using the jquery-ui-rails gem.
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
.
In the meantime, just modify your Gemfile:
gem "jquery-ui-rails" Not recommended, see @Kevin's comment below
Or you can downgrade your version of jquery-rails:
gem "jquery-rails", "< 3.0.0"
Or you can pull from their Github master branch. They have applied a temporary fix.
gem "activeadmin", github: "gregbell/active_admin"
这篇关于rails 活动管理员部署:找不到文件“jquery-ui"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!