[Rails-core] Location of Nested Controller Layout Files

DeLynn Berry delynn at gmail.com
Fri Feb 3 23:06:19 GMT 2006


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.

--
DeLynn Berry
delynn at gmail.com
http://www.delynnberry.com


More information about the Rails-core mailing list