我只是想安装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并从头开始重新开始整个事情......没有骰子。
答案 0 :(得分:8)
您需要重命名您的应用程序,它不能命名为active_admin
。