From: Jordan Brough Date: 2009-01-28T22:30:42+09:00 Subject: Re: Ruby 1.8.7: ERB is broken Comments aren't supported, only comment tags are. ruby -v -rerb -e 'p ERB.new("<%# test %>foobar").result' correctly gives 'foobar'. while ruby -v -rerb -e 'p ERB.new("<% # test %>foobar").result' gives an empty string (in 1.8.6 and 1.8.7). Charlie Marx wrote: > Actually comments will work in 1.8.7, but only with a specific, more > limited syntax than shown in the original example above. > > So comments ARE allowed when the whole embedded expression is a comment, > -- Posted via http://www.ruby-forum.com/.