private Method

Base.template_exists?(template_path, extension)

Asserts the existence of a template.

Source Code

# File action_view/base.rb, line 452
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
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.