Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

This project is archived and is in readonly mode.

Bad syntax for comments in generated *.js.coffee

#6706

Actual template for ".js.coffee" files generates a app/assets/javascripts/[controller].js.coffee with 3 comments starting with a "//". It leads to this error when trying to compile to JS:

ExecJS::ProgramError
Error: Parse error on line 1: Unexpected 'IDENTIFIER'

If I'm not wrong, Coffeescript comments start with a "#", not a "//". Hence the (trivial) attached patch, which solves the error for me.

Relevant information for this ticket: I'm running a fresh Rails master (3.1), with coffee-script 2.2.0 and coffee-script-source 1.0.1.

Reported by jeanbaptiste.barth (at gmail) · April 17th, 2011 @ 03:22 AM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.