public Method

TemplateFinder.find_template_extension_from_handler(template_path)

There's no documentation for this item.

Source Code

# File action_view/template_finder.rb, line 137
def find_template_extension_from_handler(template_path)
  formatted_template_path = "#{template_path}.#{@template.template_format}"

  view_paths.each do |path|
    if (extensions = @@file_extension_cache[path][formatted_template_path]).any?
      return "#{@template.template_format}.#{extensions.first}"
    elsif (extensions = @@file_extension_cache[path][template_path]).any?
      return extensions.first.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.