Specify the layout to use for this class.
If the specified layout is a:
the String is the template name
call the method specified by the symbol, which will return the template name
There is no layout
raise an ArgumentError
Force default layout behavior with inheritance
layout
- The layout to use.
:only - A list of actions to apply this layout to.
:except - Apply this layout to all actions but this one.
# File lib/abstract_controller/layouts.rb, line 261 def layout(layout, conditions = {}) include LayoutConditions unless conditions.empty? conditions.each {|k, v| conditions[k] = Array(v).map {|a| a.to_s} } self._layout_conditions = conditions self._layout = layout _write_layout_method end