From 967a7273925e038ede4f48ed23f8aa1473889fdd Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Apr 2016 09:41:21 -0400 Subject: [PATCH] Update _details.html.erb --- app/views/customers/_details.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?"} %>