there is a line displayed within <pre>
<%= h @stories.inspect %>
and the output was too long, so i changed it to
<%= #h @stories.inspect %>
<% @stories.each do |s| %>
<%= h s.inspect %>
<% end %>
(commenting out the first line). now the code will fail to compile...
error, unexpected kENSURE, expecting ')'
error, unexpected kEND, expecting ')'
and if i remove that commented line altogether, the code will work. i
thought in some book, it is said that you can comment out some code in
ERB like that?
Update: funny if i change it to
<% #h @stories.inspect %>
then it will compile fine... so the displaying of result tag <%= %>
doesn't like comments, it seems.