How do we add comments in erb files, if we do not want them to be generated into the html content?


Use the <%# %> sequence, e.g.

<%# This is a great comment! %>

For Record

<%# This is a great comment! %>

<%#= This is a great comment! %>