Method deprecated
This method is deprecated on the latest stable version of Rails.
The last existing version (v2.0.3) is shown here.
template_exists?(template_path, extension)
private
Asserts the existence of a template.
Show source
def template_exists?(template_path, extension)
file_path = full_template_path(template_path, extension)
!file_path.blank? && @@method_names.has_key?(file_path) || File.exist?(file_path)
end