diff --git a/app/views/customers/_details.html.erb b/app/views/customers/_details.html.erb index fa817b0..73f60f8 100644 --- a/app/views/customers/_details.html.erb +++ b/app/views/customers/_details.html.erb @@ -29,7 +29,7 @@ <%= button_to "Edit", edit_customer_path(@customer), method: :get%> - <%= button_to "Delete", @customer, method: :delete, data: {confirm: "You sure?"} %> + <%= button_to "Delete", delete_customer_path(@customer), method: :delete, data: {confirm: "You sure?"} %>