AutoCommit Son Aug 2 10:03:02 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-02 10:03:02 +02:00
parent f71171f509
commit 15b70ad8c6
8 changed files with 29 additions and 27 deletions

View File

@@ -39,3 +39,4 @@
</div>
<% end %>
</div>

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 %>