Remove destroy link

This commit is contained in:
Manuel Bustillo 2024-07-11 20:01:53 +02:00
parent 57fcfa3662
commit 4a31153dc8

View File

@ -7,7 +7,7 @@
<tr>
<th>Name</th>
<th>Amount</th>
<th colspan="3"></th>
<th colspan="2"></th>
</tr>
<% @expenses.each do |expense| %>
<tr>
@ -15,7 +15,6 @@
<td><%= expense.amount %></td>
<td><%= link_to "Show", expense %></td>
<td><%= link_to "Edit", edit_expense_path(expense) %></td>
<td><%= link_to "Destroy", expense, method: :delete, data: { confirm: "Are you sure?" } %></td>
<% end %>
</div>