You may be able to just do:
```erb
<td><%= @attendees.index(attendee) + 1 %></td>
```