lib/active_view/layouts.rb
# Returns the default layout for this controller.
# Optionally raises an exception if the layout could not be found.
#
# ==== Parameters
# * <tt>require_layout</tt> - If set to true and layout is not found,
#   an ArgumentError exception is raised (defaults to false)
#
# ==== Returns
# * <tt>template</tt> - The template object for the default layout (or nil)
Returns the default layout for this controller.
Optionally raises an exception if the layout could not be found.

Parameters
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)
Returns the default layout for this controller . Optionally raises an exception if the layout could not be found . Parameters 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 )
def _default_layout(require_layout = false)
      begin
        value = _layout if view_has_layout?
      rescue NameError => e
        raise e, "Could not render layout: #{e.message}"
      end
      if require_layout && view_has_layout? && !value
        raise ArgumentError,
          "There was no default layout for #{self.class} in #{view_paths.inspect}"
      end
      _normalize_layout(value)
    end
def _default_layout ( require_layout = false ) begin value = _layout if view_has_layout? rescue NameError => e raise e , "Could not render layout: #{e.message}" end if require_layout && view_has_layout? && ! value raise ArgumentError , "There was no default layout for #{self.class} in #{view_paths.inspect}" end _normalize_layout ( value ) end
Returns the default layout for this controller.
Returns the default layout for this controller .
require_layout
<not_specific>