Best way to add comments in erb Best way to add comments in erb ruby-on-rails ruby-on-rails

Best way to add comments in erb


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

<%# This is a great comment! %>


For Record

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


For block comments:

<% if false %>    code to be commented out...<% end %>