As many, I develop an application with "admin" section. I placed controllers related to admin in a "subdirectory" under app/controllers (i.e. app/controllers/admin). By convention, Rails assumes that controllers in subdirectory admin are in a module named after the subdirectory i.e. "Admin". So the controller welcome located in app/controllers/admin/welcome_controller has the name Admin::Welcome. Controller_name only returns welcome, without Admin since Admin is not a part of the name of the controller.
My question is: is there a way to get (a method) the 'Admin' part of the name from inside the controller? And how :-).
Is this clearer?