RAILS: Bundler could not find compatible versions for gem "actionpack" when installing ActiveAdmin

I added gem 'activeadmin', github: 'activeadmin' to my gemfile and installed the package. Then he throws me the following error.

 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) 

Running bundle update will restore the snapshot from scratch using only gems in your Gemfile that can resolve the conflict.

I updated the package, but still the error is the same. Any help would be appreciated.

EDIT

gem 'activeadmin' not compatible with rails 5

+5
source share
2 answers

This solution worked for me. For rails 5 you need to add another gem like this:

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

To read further, go to this thread.

+5
source

You need to install the inherited gem resource with active admin in rails 5

 gem 'activeadmin', github: 'activeadmin' gem 'inherited_resources', github: 'activeadmin/inherited_resources' 
+1
source

Source: https://habr.com/ru/post/1260206/


All Articles