Admin::Contr does not use layouts/admin/application.rhtml!

Joshua Muheim wrote:

Hi all

I know that Rails uses the layout views/layouts/application.rhtml as
default when not specified differently.
But why do controllers in modules not also use their own
application.rhtml?

controllers/MyController => uses views/layouts/application.rhtml
controllers/admin/MyController => also uses
views/layouts/application.rhtml, but I'd like it to use uses
views/admin/layouts/application.rhtml!

Is this a bug or just a neglection in the specification of Rails?

Greetz
Josh

Reading this might help you:
http://www.microisv.com.ph/blog/layout-tips-using-ruby-on-rails.html

Cheers
Mohit.