Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby-on-Rails: ActiveAdmin SuperClass Mismatch TypeError

I'm just trying to install ActiveAdmin. Seems pretty straightforward.

http://net.tutsplus.com/tutorials/ruby/create-beautiful-administration-interfaces-with-active-admin/

But when I get to rails generate active_admin:install

I get:

$ rails generate active_admin:install
/home/user/active_admin/config/application.rb:13:in `<module:ActiveAdmin>': superclass mismatch for class Application (TypeError)
from /home/user/active_admin/config/application.rb:12:in `<top (required)>'
from /home/user/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:24:in `require'
from /home/user/.rvm/gems/ruby-1.9.3-p429/gems/railties-3.2.13/lib/rails/commands.rb:24:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Can't seem to find anyone else with this problem. I even deleted active_admin and started the whole thing again from scratch... no dice.

like image 414
mystic cola Avatar asked Jun 23 '13 20:06

mystic cola


1 Answers

You need to rename your application, it cannot be named active_admin.

like image 114
Luís Ramalho Avatar answered Nov 15 '22 08:11

Luís Ramalho