instance method default_layout_with_format

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3 Private

Signature

default_layout_with_format(format, layout)

No documentation comment.

Parameters

format req
layout req
Source
# File actionpack/lib/action_controller/layout.rb, line 204
        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

Defined in actionpack/lib/action_controller/layout.rb line 204 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Layout::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close