Never insert comments in ERB code

Never insert comments in ERB code in one line, such as:

<% if somecode # my comment… %>

If you have more stuff after this line, it will be all ignored by rails, causing many problems.

One Response to “Never insert comments in ERB code”

  1. or:

    want to

Leave a Reply