Code is executed inside HTML comment tags (<!-- some comment -->
), whereas <%# %>
works as comments. In addition to that, "best way to add comments in erb" says that there are two options: one uses the =
sign, that is, <%#= %>
, but it does not mention the difference. What is the difference between the two?
EDIT: corrected the code I pasted here to be as in the referenced link