From: Johannes Fahrenkrug Date: 2009-08-03T20:32:31+09:00 Subject: [ruby-core:24715] [Bug #1868] ERB single line comment does not work Bug #1868: ERB single line comment does not work http://redmine.ruby-lang.org/issues/show/1868 Author: Johannes Fahrenkrug Status: Open, Priority: Normal Category: core ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] Hi, I just ran into this and found that a 1.9 bug for this is open already. But this issue also applies to 1.8.7. So I'm duplicating the description from here: http://redmine.ruby-lang.org/issues/show/1559 In erb you're supposed to be able to do single line comments: <% # this is a comment %> However, this does not work in ruby 1.9.1. Temporary work around is to put the '%>' on a newline: <% # this comment works in 1.9.1 %> Please see attached unit test. ---------------------------------------- http://redmine.ruby-lang.org