method
layout
v4.2.9 -
Show latest stable
- Class:
ActionView::Layouts::ClassMethods
layout(layout, conditions = {})public
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 | |
false |
There is no layout |
true |
raise an ArgumentError |
nil |
Force default layout behavior with inheritance |