instance method template_format

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

template_format()

The format to be used when choosing between multiple templates with the same name but differing formats. See +Request#template_format+ for more details.

Source
# File actionpack/lib/action_view/base.rb, line 270
    def template_format
      if defined? @template_format
        @template_format
      elsif controller && controller.respond_to?(:request)
        @template_format = controller.request.template_format
      else
        @template_format = :html
      end
    end

Defined in actionpack/lib/action_view/base.rb line 270 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close