private Method

ClassMethods.default_layout_with_format(format, layout)

There's no documentation for this item.

Source Code

# File action_controller/layout.rb, line 211
def default_layout_with_format(format, layout)
  list = layout_list
  if list.grep(%r{layouts/#{layout}\.#{format}(\.[a-z][0-9a-z]*)+$}).empty?
    (!list.grep(%r{layouts/#{layout}\.([a-z][0-9a-z]*)+$}).empty? && format == :html) ? layout : nil
  else
    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.