ActiveAdmin - uninitialized constant AdminUser

狂风中的少年 提交于 2019-12-05 07:16:58

Try restarting rails server. Had similar problems which cleared up after a restart.

This error will be thrown any time your model has an erroneous association in it. If you changed any associations, but forget to update your model's file, you will get this error.

Double check your model files. Open active admin locally to see what error it gives you (localhost:3000/admin). It will usually say uninitialized constant MyModel:MyBadAssociation, so helps you diagnose the error.

Renaming app/models/admin_user.rb to app/models/admin_users.rb helped me.

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