method
_default_layout
v7.1.3.2 -
Show latest stable
- Class:
ActionView::Layouts
_default_layout(lookup_context, formats, require_layout = false)private
Returns the default layout for this controller. Optionally raises an exception if the layout could not be found.
Parameters
-
formats - The formats accepted to this layout
-
require_layout - If set to true and layout is not found, an ArgumentError exception is raised (defaults to false)
Returns
-
template - The template object for the default layout (or nil)