private Method

Base.find_template_extension_from_handler(template_path, formatted = nil)

There's no documentation for this item.

Source Code

# File action_view/base.rb, line 480
def find_template_extension_from_handler(template_path, formatted = nil)
  checked_template_path = formatted ? "#{template_path}.#{template_format}" : template_path

  self.class.template_handler_extensions.each do |extension|
    if template_exists?(checked_template_path, extension)
      return formatted ? "#{template_format}.#{extension}" : extension.to_s
    end
  end
  nil
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.