<h1>Listing comments</h1>

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

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

<br />

<%= link_to 'New comment', new_comment_path %>
