Displaying 1 result from an estimated 1 matches for "javascript_template_exists".
2005 Dec 19
1
Preserving fallback with RJS
...pick_template_extension(template_path)#:nodoc:
if match = delegate_template_exists?(template_path)
match.first
elsif erb_template_exists?(template_path): ''rhtml''
elsif builder_template_exists?(template_path): ''rxml''
elsif javascript_template_exists?(template_path): ''rjs''
else
raise ActionViewError, "No rhtml, rxml, rjs or delegate
template found for #{template_path}"
end
end
def render_file(template_path, use_full_path = true, local_assigns = {})
@first_render = template_path...