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 %>