activeadmin / inherited_resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overwriting route_prefix default doesn't seem to work with an inherited controller

jensljungblad opened this issue · comments

I have the following two controllers:

class Administration::ResourceController < Administration::ApplicationController
  inherit_resources
  defaults route_prefix: "admin"
end

class Administration::ArticlesController < Administration::ResourceController
end

The generated helpers are on the form administration_article_url rather than admin_article_url which is what I would expect. Other defaults, such as resource_class seem to be properly inherited.

This issue has been automatically closed because of inactivity.

If you can still reproduce this error on the newest version, please reply with all of the information you have about it in order to keep the issue open.

Thank you.