private Method

Base.find_template_extension_for(template_path)

Determines the template’s file extension, such as rhtml, rxml, or rjs.

Source Code

# File action_view/base.rb, line 474
def find_template_extension_for(template_path)
  find_template_extension_from_handler(template_path, true) ||
  find_template_extension_from_handler(template_path) ||
  find_template_extension_from_first_render()
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.