Layout :except

Hello,
I have a controller that has a layout for the view, but I don’t want it
to use the layout for two actions - “exportflagged” and “fullreport”. I
tried to use:

layout ‘standard’, :except => :fullreport, :except => :exportflagged

but “fullreport” still has the layout! Is there a proper way to do this?

Thank you,

  • Jeff M.

:except takes an array, just as it does for before_filter and
after_filter.

Try

layout “standard”, :except => [:fullreport, :exportflagged]

On Fri, Mar 7, 2008 at 3:42 PM, Jeff M. <

Thank you, sir, that worked!