Remove destroy link
This commit is contained in:
parent
57fcfa3662
commit
4a31153dc8
@ -7,7 +7,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
<th colspan="3"></th>
|
<th colspan="2"></th>
|
||||||
</tr>
|
</tr>
|
||||||
<% @expenses.each do |expense| %>
|
<% @expenses.each do |expense| %>
|
||||||
<tr>
|
<tr>
|
||||||
@ -15,7 +15,6 @@
|
|||||||
<td><%= expense.amount %></td>
|
<td><%= expense.amount %></td>
|
||||||
<td><%= link_to "Show", expense %></td>
|
<td><%= link_to "Show", expense %></td>
|
||||||
<td><%= link_to "Edit", edit_expense_path(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 %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user