This project is archived and is in readonly mode.

#1580 ✓wontfix

Whitespace Bug in Erb Comments in Rails 2.2.2

Reported by ijayasin | December 15th, 2008 @ 09:04 PM | in 2.x


There seems to be a bug in Erb comments when there are white spaces between the <% and # of the Erb tag. I've noticed this in Rails 2.2.2. This has worked in Rails 2.1.0 and older.

<%# This is comment causes no problems %>

<% # This comment will exclude content up to the next Erb tag %> This text will be removed<%= "but this will be rendered" %> from the output.

In the above example the following is returned to the browser:

but this will be rendered from the output.

Comments such as these were working up until Rails 2.1.0.



Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket

Referenced by