[image: More message actions]
10:27 PM (1 minute ago)
When I run rake assets:precompile on my app, I get the following
syntax error, unexpected tSTRING_BEG, expecting
which refers to a line in a .js.erb file ending in -%>.
The ending hyphen was added to eliminate the line break in .html.erb
But when I remove the hyphen, the error goes away. The last sentence
CSS and ERB’ in
says ‘Note that the closing tag cannot be of the style -%>.’ Does anyone
know why adding the dash before %> in .js.erb (and apparently in
files causes the rails precompiler to fail?