From 4a31153dc845373bafcb894319c529731ba5d9cb Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Thu, 11 Jul 2024 20:01:53 +0200 Subject: [PATCH] Remove destroy link --- app/views/expenses/index.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/expenses/index.html.erb b/app/views/expenses/index.html.erb index ad8c8a4..589b9c1 100644 --- a/app/views/expenses/index.html.erb +++ b/app/views/expenses/index.html.erb @@ -7,7 +7,7 @@ Name Amount - + <% @expenses.each do |expense| %> @@ -15,7 +15,6 @@ <%= expense.amount %> <%= link_to "Show", expense %> <%= link_to "Edit", edit_expense_path(expense) %> - <%= link_to "Destroy", expense, method: :delete, data: { confirm: "Are you sure?" } %> <% end %>