v3.1.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.


  • details - A list of details to restrict the search by. This might include details like the format or locale of the template.

  • require_layout - If this is true, raise an ArgumentError with details about the fact that the exception could not be found (defaults to false)


  • template - The template object for the default layout (or nil)

Show source
Register or log in to add new notes.