How do we add comments in erb files, if we do not want them to be generated into the html content?
Ruby-on-rails – Best way to add comments in erb
block-commentscommentserbrubyruby-on-rails
Related Topic
- What’s a quick way to comment/uncomment lines in Vim
- How to do block comments in YAML
- Ruby – Multi-Line Comments in Ruby
- Comments in Markdown
- Python – way to create multiline comments in Python
- How to “comment-out” (add comment) in a batch/cmd
- How to add comments to package.json for npm install
- C# – Making a cross-thread call to a ListView
Best Answer
Use the
<%# %>
sequence, e.g.