加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – RAILS:Bundler在安装ActiveAdmin时找不到gem

发布时间:2020-12-17 03:25:10 所属栏目:百科 来源:网络整理
导读:我在我的gemfile中添加了gem’activeadmin’,github:’activeadmin’并进行了bundle安装.然后它给我发了以下错误. Bundler could not find compatible versions for gem "actionpack": In snapshot (Gemfile.lock): actionpack (= 5.0.0.1)In Gemfile:activ
我在我的gemfile中添加了gem’activeadmin’,github:’activeadmin’并进行了bundle安装.然后它给我发了以下错误.

Bundler could not find compatible versions for gem "actionpack":
   In snapshot (Gemfile.lock):
     actionpack (= 5.0.0.1)

In Gemfile:
activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4,which depends on
  formtastic (~> 3.1) was resolved to 3.1.4,which depends on
    actionpack (>= 3.2.13)

activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4,which depends on
  inherited_resources (~> 1.6) was resolved to 1.6.0,which depends on
    actionpack (< 5,>= 3.2)

activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4,which depends on
  kaminari (~> 0.15) was resolved to 0.17.0,which depends on
    actionpack (>= 3.0.0)

activeadmin (~> 1.0.0.pre4) was resolved to 1.0.0.pre4,which depends on
  ransack (~> 1.3) was resolved to 1.8.2,which depends on
    actionpack (>= 3.0)

Running bundle update will rebuild your snapshot from scratch,using only
the gems in your Gemfile,which may resolve the conflict.

我做了捆绑更新,但仍然是错误相同.任何帮助,将不胜感激.

编辑

gem 'activeadmin' is not compatible with rails 5

解决方法

这个解决方案对我有用.对于rails 5,您必须添加另一个gem,如下所示:

gem 'activeadmin',github: 'activeadmin'
gem 'inherited_resources',github: 'activeadmin/inherited_resources'

要进一步阅读,请转到this线程.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读