Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveAdmin Rails 3.1 Install Issue

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 now. I have made sure that I have added the required 3.1 gems (sass-rails and meta_search) per the install instruction on the github wiki. Does anyone have any ideas?

like image 835
ghempton Avatar asked Sep 02 '11 22:09

ghempton


1 Answers

I ran into this too. Jose Valim released a new version 1.3.0 of the inherited_resources gem, and ActiveAdmin didn't pin the gem to the previous version 1.2.2. I was able to fix this issue by adding the following line to my gemfile:

gem "inherited_resources", "1.2.2"

like image 128
trace Avatar answered Sep 18 '22 17:09

trace