RAILS:Bundler在安装ActiveAdmin时找不到gem"actionpack"的兼容版本

Dro*_*oob 5 ruby ruby-on-rails activeadmin ruby-on-rails-5

gem 'activeadmin', github: 'activeadmin'在我的gemfile中添加了一个bundle install.然后它给我发了以下错误.

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
  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)
Run Code Online (Sandbox Code Playgroud)

运行bundle update将从头开始重建快照,仅使用Gemfile中的gem,这可以解决冲突.

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

编辑

gem 'activeadmin' 与导轨5不兼容

tit*_*tan 5

这个解决方案对我有用.因为rails 5你必须添加另一个gem如下:

gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'
Run Code Online (Sandbox Code Playgroud)

要进一步阅读,请转到主题.