Module AbstractController::Layouts::ClassMethods
In: lib/abstract_controller/layouts.rb

Methods

Included Modules

LayoutConditions

Classes and Modules

Module AbstractController::Layouts::ClassMethods::LayoutConditions

Public Instance methods

If no layout is supplied, look for a template named the return value of this method.

Returns

  • String - A template name

Creates a _layout method to be called by _default_layout .

If a layout is not explicitly mentioned then look for a layout with the controller‘s name. if nothing is found then try same procedure to find super class‘s layout.

Specify the layout to use for this class.

If the specified layout is a:

String:the String is the template name
Symbol:call the method specified by the symbol, which will return
  the template name
false:There is no layout
true:raise an ArgumentError
nil:Force default layout behavior with inheritance

Parameters

Options (conditions)

  • :only - A list of actions to apply this layout to.
  • :except - Apply this layout to all actions but this one.

[Validate]