Displaying 1 result from an estimated 1 matches for "builder_template_exists".
2005 Dec 19
1
Preserving fallback with RJS
...Looking at the render code which controlls which template we go to...
def 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...