method
_default_layout
v3.0.0 -
Show latest stable
- Class:
AbstractController::Layouts
_default_layout(require_layout = false)private
Returns the default layout for this controller and a given set of details. Optionally raises an exception if the layout could not be found.
Parameters
- details - A list of details to restrict the search by. This might include details like the format or locale of the template.
- require_logout - If this is true, raise an ArgumentError with details about the fact that the exception could not be found (defaults to false)
Returns
- template - The template object for the default layout (or nil)