method

_default_layout

Importance_1
v3.0.0 - Show latest stable - 0 notes - 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)
Show source
Register or log in to add new notes.