I think each_with_index would be a bit cleaner, just need to ensure you do index+1 since it starts at 1.