Skip to content

Commit

Permalink
added delete button per paper on paper index page, solved #27
Browse files Browse the repository at this point in the history
  • Loading branch information
akuchinke committed Nov 9, 2017
1 parent ba68142 commit 1732cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/papers/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<td><%= paper.year %></td>
<td><%= link_to 'Show', paper_path(paper) %></td>
<td><%= link_to 'Edit', edit_paper_path(paper) %></td>

<td><%= link_to 'Destroy', paper_path(paper), method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>

0 comments on commit 1732cbc

Please sign in to comment.