ActiveAdmin Rails 3.1 Installing Problem

I am trying to use ActiveAdmin with rails 3.1, but I get the following error during rails generate active_admin:install . I get the following:

 gems/activeadmin-0.3.0/lib/active_admin/namespace.rb:176:in `eval': uninitialized constant InheritedResources::Base (NameError) 

This happens with any generate / destroy commands. I made sure that I added the necessary 3.1 attributes (sass rails and meta_search) to the installation instructions on the github wiki. Does anyone have any ideas?

+6
source share
1 answer

I also came across this. Jose Valim released the new version 1.3.0 of the inherited gem inherited_resources, and ActiveAdmin did not bind the gem to the previous version 1.2.2. I was able to fix this problem by adding the following line to my gemfile:

gem "inherited_resources", "1.2.2"

+7
source

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


All Articles