I have a .html.erb page and I am trying to comment something out using traditional HTML comments:
<!--
User Id (testing MySQL call): <%= @User.uid %>
-->
But since its a Ruby reference that I am commenting out, it isn’t getting commented, and is generating ruby errors. How could I comment out such a thing? I also tried putting a # before that line, but that didn’t work either.
In your ERB tags, to do a comment, use:
You’ll still need the HTML comment tags wrapping the other text too.