public Method

TemplateFinder.file_exists?(template_path)

There's no documentation for this item.

Source Code

# File action_view/template_finder.rb, line 102
def file_exists?(template_path)
  # Clear the forward slash in the beginning if exists
  template_path = template_path.sub(/^\//, '')

  template_file_name, template_file_extension = path_and_extension(template_path)

  if template_file_extension
    template_exists?(template_file_name, template_file_extension)
  else
    template_exists?(template_file_name, pick_template_extension(template_path))
  end
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.