The Enumerable ruby class is your friend!
Forget about for loops and trying to ouput an iterator.
Instead, in your ruby code, you can do:
1.
@post.comments.each_with_index |post, index|
2.
"Comment Number #{index}"
3.
post.name
4.
end
And that will output the iteration number with your other data.
Ruby makes coding so much more fun.