Ruby-on-Rails:ActiveAdmin SuperClass Mismatch TypeError

时间:2013-06-23 20:14:30

标签: ruby-on-rails ruby-on-rails-3 activeadmin

我只是想安装ActiveAdmin。看起来非常简单。

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

但是当我到rails生成active_admin:install

我明白了:

$ 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>'

似乎找不到其他人遇到此问题。我甚至删除了active_admin并从头开始重新开始整个事情......没有骰子。

1 个答案:

答案 0 :(得分:8)

您需要重命名您的应用程序,它不能命名为active_admin