method
layout
v3.0.0 -
Show latest stable
- Class:
AbstractController::Layouts::ClassMethods
layout(layout, conditions = {})public
Specify the layout to use for this class.
If the specified layout is a:
| String: | the String is the template name |
| Symbol: | call the method specified by the symbol, which will return |
the template name
| false: | There is no layout |
| true: | raise an ArgumentError |