-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActiveAdmin resource for a namespaced resource #2394
Comments
That's odd; a routing error complaining that... nothing extra is required for routing.
|
Hi,
I am going to revert my changes, and try again. |
You should be sure to use the rails4 branch of AA. Hopefully you get it sorted! |
Yeah, that is the one I am using. I will report my findings here :) |
Okay, I found the solution. I had another admin engine living in my application, and hence occupied the admin namespace (which was also being used by active_admin). Effectively, it was a namespace conflict. By either changing the namespace on active_admin, or the other engine, the issue was resolve. |
Ah. It seems like the only way to fix that would be: # lib/active_admin/namespace.rb
def register_module
if const = "::#{module_name}".safe_constantize
raise "foo" unless const.const_defined? :CREATED_BY_ACTIVE_ADMIN
end
eval "module ::#{module_name}
CREATED_BY_ACTIVE_ADMIN = true
end"
end |
I am using ActiveAdmin for the first time. I am trying to create an administration page for a model that lives under my "Core" engine. I hence have defined a active_admin file as follows:
This creates a tab within the active_admin tab section. However, I get the following error:
How can I fix this?
Thanks"
The text was updated successfully, but these errors were encountered: