private Method

Layout.candidate_for_layout?(options)

There's no documentation for this item.

Source Code

# File action_controller/layout.rb, line 274
def candidate_for_layout?(options)
  (options.has_key?(:layout) && options[:layout] != false) || 
    options.values_at(:text, :xml, :json, :file, :inline, :partial, :nothing).compact.empty? &&
    !template_exempt_from_layout?(options[:template] || default_template_name(options[:action]))
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.