I found that to be rather misleading as I thought it suggest that such files could include a mixture of both javascript and coffeescript code. Is there something very fundamental that I am missing?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a common practice in Rails for templates to have extensions like
.js.coffee,.html.erb,.html.haml, etc.If I remember correctly Rails interprets these extensions as
.[format].[builder]and uses that knowledge to do two things:[format]value comparing it with acceptable formats listed in the request’sAcceptheader;[builder]value to parse your template.