Controller Inheritance/Namespacing

Hi all,

Just a quick one… I created an admin controller which I want to use as
a hub for admin tasks…

I then did:
ruby script/generate controller admin::articles

Now I can only access actions from admin/articles_controller.rb if there
is no /admin_controller.rb… if I create the admin_controller and go


I get the unknown action response.

Any ideas what is going on there? it seems that having the parent
controller file stops rails looking for actions in my sub-controllers…


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs