On Saturday 06 August 2005 19:30, Michael Schuerig
wrote:> I''d like to write rules for which layout to use like this
>
> layout ''form'', :only => [ :new, :edit ]
> layout ''list'', :only => :list
> layout ''application'', :except => [ :new, :edit,
:list ]
>
> Currently, every new call to layout overwrites the previous
> definition.
>
> Has anyone already looked into this? Otherwise I do it myself and
> write a patch.
Not necessary, after all. It''s easier to use a proc or method to
determine the layout
layout :my_layout_method
Michael
--
Michael Schuerig Failures to use one''s frontal lobes
mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org can result in the
loss of them.
http://www.schuerig.de/michael/ --William H. Calvin