Location of Nested Controller Layout Files

DeLynn Berry
Fri, 03 Feb 2006 23:06:19 -0000

I had a hard time finding any documentation on if or how layout files
worked with nested controllers. After trying a few thing myself (e.g.
adding a admin/users.rhtml file and a admin_users.rhtml file to the
layouts directory) and not seeing the expected results, I decided to
look at the source to see if support for this was included. After
looking around in the Layouts Module I learned that one needs to first
create a "controller" directory inside of layouts and then the natural
admin/users.rhtml file would work.

I''m wondering if it might be easier to eliminate this extraneous
directory? Is there a reason for this current behavior that I am just
unfamiliar with (like Components or something)?

Thanks.