RuntimeErrorenvironment Circular dependency detected while autoloading constant User + Rails

泄露秘密 提交于 2019-12-14 03:22:42

问题


After removing active_admin i am getting this error from production. Please help me how do i solved this error.

app/admin/user.rb:1<top (required)>


ActiveAdmin.register User do
# See permitted parameters documentation:
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
#
# permit_params :list, :of, :attributes, :on, :model

回答1:


If you remove the activeadmin gem, you need to delete all files from app/admin and one line from your routes.rb ActiveAdmin.routes(self)



来源:https://stackoverflow.com/questions/42249562/runtimeerrorenvironment-circular-dependency-detected-while-autoloading-constant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!