Determine the template extension from the @first_render filename
# File action_view/template_finder.rb, line 157 def find_template_extension_from_first_render File.basename(@template.first_render.to_s)[/^[^.]+\.(.+)$/, 1] end
<code/>
<pre/>
<code/>and<pre/>for code samples.