app/views/repeating_events/index.html.erb
<% title "Repeating Events" %>
<table class = "tablesorter">
<thead>
<tr>
<th>Start Date</th>
<th>End Date</th>
<th>Days Of Week</th>
<th>Locations</th>
</tr>
</thead>
<% for repeating_event in @repeating_events %>
<tbody>
<tr>
<td><%= repeating_event.start_date.strftime("%D") %></td>
<td><%= repeating_event.end_date.strftime("%D") %></td>
<td><%= repeating_event.days.join(", ") %></td>
<td><%= repeating_event.locations.map{|l| l.short_name}.join(", ") %></td>
<td><%= link_to "Show", repeating_event %></td>
<td><%= link_to "Edit", edit_repeating_event_path(repeating_event) %></td>
<td><%= link_to "Destroy", repeating_event, confirm: 'Are you sure?', method: :delete %></td>
</tr>
</tbody>
<% end %>
</table>
<p><%= link_to "New Repeating Event", new_repeating_event_path %></p>