This is because one “loop” from Rails ( :collectionmeaning that Rails will display a partial for each element in the collection, in this case @attendees) and one loop through your own partial.
Change the partial below (not sure about visitor / user relationship, but here is a sample):
<li><%= link_to attendee.name, attendee.user %></li>
Or change the partial call to:
<%= render :partial => 'events/attendees' %>
source
share