<h1>Listing favorites</h1>

<table>
  <tr>
    <th>User</th>
    <th>Song</th>
  </tr>

<% for favorites in @favorites %>
  <tr>
    <td><%=h favorites.user_id %></td>
    <td><%=h favorites.song_id %></td>
    <td><%= link_to 'Show', favorites %></td>
    <td><%= link_to 'Edit', edit_favorite_path(favorites) %></td>
    <td><%= link_to 'Destroy', favorites, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New favorites', new_favorite_path %>
