private Method

Layout.pick_layout(template_with_options, options)

There's no documentation for this item.

Source Code

# File action_controller/layout.rb, line 280
def pick_layout(template_with_options, options)
  if template_with_options
    case layout = options[:layout]
      when FalseClass
        nil
      when NilClass, TrueClass
        active_layout if action_has_layout?
      else
        active_layout(layout)
    end
  else
    active_layout if action_has_layout?
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.