method

_default_layout

Importance_1
v7.0.0 - Show latest stable - 0 notes - 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)

Show source
Register or log in to add new notes.