method

conditional_layout?

conditional_layout?()
public

Determines whether the current action has a layout by checking the action name against the :only and :except conditions set on the layout.

Returns

  • Boolean - True if the action has a layout, false otherwise.