Layout for a module


#1

Hi,

I have several controllers under 1 module. What I want to achieve is to
use a layout that all controllers will use. AFAIK in Rails, I can only
define a layout for a controller, and not for a module. Is it possible
to define a layout for a module?

Thanks.


#2

Greg:

I don’t know what a "module’ is. But you can define one layout for
all controllers in an app by naming it 'application.rhtml and
placing it at the root level of the layouts folder. You must then
not have individual layouts defined by controller or the application.
rhtml file will be overridden. Hope that helps.

bruce