Best way to add comments in erb Ask Question

Best way to add comments in erb Ask Question

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

ベストアンサー1

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

<%# This is a great comment! %>

おすすめ記事