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 %>
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: