This spring I had a weird discovery within my erb-files.
When I wrote a comment like
SOME STUFF STUFF <% # comment %> MORE STUFF
It broke with a SyntaxError!
However, if the comment was on its own line, it didn't
THIS WILL <% # comment %> WORK
I wrote a small blog post about it here, if you'd like to read more about it: