Displaying 1 result from an estimated 1 matches for "erb_template_exist".
Did you mean:
erb_template_exists
2005 Dec 19
1
Preserving fallback with RJS
...show the code that I think pertains so you can see what
might need to be changed.
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
templat...