I’m currently having the admin part of one of my apps accessible by pure
username and password + role management checking.
I was planning to add namespaces for it. Then I came accross this (a bit
old but still…):
"Putting Controllers in Namespaces
This is really more trouble than itâ€™s worth. You run into all sorts of
crazy errors if you do this and youâ€™ll be confused and frustrated.
Youâ€™ll then ask other people about it and theyâ€™ll either blow you off
for using namespaces with controllers or procede to get confused and
frustrated as well. Then youâ€™ll say, â€œI with I had listened to Kevin and
Chrisâ€. If you want /admin/some_controller as an URL thatâ€™s fine. Use
the routing thatâ€™s built into rails."
I’ve used namespaces for admin before and actually it can create
confusion. On the other hand using a common controller with some extra
is_admin? checks can be a bit ugly. I know it all depends on how
different the admin funcionality is.
But is there any opinions/experiences you could share on this issue?