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:
@post.comments.each_with_index |post, index| "Comment Number #{index}" post.name end
And that will output the iteration number with your other data.
Ruby makes coding so much more fun.