How do you comment out html mixed with ruby code?
some text <% ... %> more text <%= ... %> something else <% ... %>
In js
Use this for commenting single lines:
<%# your_ruby_code %>
For multiple lines, the
<% =begin %> <% ruby_code %> <% =end %>
What you said would work.