Possible BUG on rails 2.2.3 with ruby 1.8.7 patchlevel 174

Try this in a view running rails 2.2.3 with ruby 1.8.7. I tried in
1.8.6 and worked just as expected. But in 1.8.7 it doesn’t execute the
code inside a condition that has a comment. Sample:

<% if (@var)%>
@var is nil so it wont get in here
<% else # a comment %>
it must to get in here, but it doesnt unless the comment in the above
condition is removed.
<% end %>

On Aug 18, 4:07 pm, Xinobit [email protected] wrote:

Try this in a view running rails 2.2.3 with ruby 1.8.7. I tried in
1.8.6 and worked just as expected. But in 1.8.7 it doesn’t execute the
code inside a condition that has a comment. Sample:

This is a ruby 1.8.7 change. Apparently comments like that were never
allowed in the first place (Ruby 1.8.7 has been released - Ruby - Ruby-Forum )

Fred