Layout for a module



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?




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.