It is common practice in Rails templates have extensions such as .js.coffee, .html.erb, .html.haml, etc.
If I remember correctly, Rails interprets these extensions as .[format].[builder]it uses this knowledge to do two things:
[format], , Accept;[builder] .