removecomments

This commit is contained in:
Andreas Stephanides
2014-10-04 12:09:56 +02:00
parent 1f2cc5d202
commit 116d0562d9
19 changed files with 5 additions and 296 deletions

View File

@@ -1,22 +0,0 @@
<h1>Listing comments</h1>
<%= render partial:"comments/comments", object: @comments %>
<table>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
<% @comments.each do |comment| %>
<tr>
<td><%= link_to 'Show', comment %></td>
<td><%= link_to 'Edit', edit_comment_path(comment) %></td>
<td><%= link_to 'Destroy', comment, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Comment', new_comment_path %>