method

_default_layout

_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)