method
file_exists?
v2.1.0 -
Show latest stable
- Class:
ActionView::TemplateFinder
file_exists?(template_path)public
No documentation available.
# File actionpack/lib/action_view/template_finder.rb, line 106
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