method
layout
rails 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 | |
|
call the passed Proc | |
false |
There is no layout |
true |
raise an ArgumentError |
nil |
Force default layout behavior with inheritance |
Return value of Proc and Symbol arguments should be String, false, true, or nil with the same meaning as described above.