From 952baff6f2f4452dfde79a67aa3913dafdaf81a1 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 21 Apr 2016 12:03:42 -0400 Subject: [PATCH] Update index.html.erb Updated Buttons --- app/views/vehicle/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/vehicle/index.html.erb b/app/views/vehicle/index.html.erb index dba086f..904e839 100644 --- a/app/views/vehicle/index.html.erb +++ b/app/views/vehicle/index.html.erb @@ -16,6 +16,6 @@ <% Vehicle.all.each do |vehicle| %>
- <%= vehicle.qbo_customer.name %> <%= vehicle.to_s %> <%= button_to "Delete", "delete/#{vehicle[:id]}", :confirm => "Are you sure?" %> + <%= vehicle.qbo_customer.name %> <%= vehicle.to_s %> <%= button_to "Edit", vehicle, method: :edit %> <%= button_to "Delete", vehicle, method: :delete, data: {confirm: "You sure?"} %>
<% end %>