<h1>Listing ratings</h1>

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

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

<br />

<%= link_to 'New rating', new_rating_path %>
