You would think I would get this done in 10 seconds, but I've spent 1/2 hour and am getting nowhere..Here is what I have/want:
<table>
<% i=0 %>
<% for name in @names%>
<% i++ %>
<tr>
<td><%= "#{i}" %></td>
<td><%= name.first %>"></td>
</tr>
</table>
Yes, all I want is a numbered list of names, like:
- fred
- wilma etc...
The error I get is:
compile error
/blah/_names.html.erb:13: syntax error, unexpected ';'
; i++ ; @output_buffer.concat "\n\t\t <td>"