diff --git a/app/views/vehicles/_details.html.erb b/app/views/vehicles/_details.html.erb index 4c5a64b..23b261e 100644 --- a/app/views/vehicles/_details.html.erb +++ b/app/views/vehicles/_details.html.erb @@ -38,6 +38,8 @@ <%= button_to "Edit", edit_vehicle_path(@vehicle), method: :get%> + + <%= button_to "Delete", @vehicle, method: :delete, data: {confirm: "You sure?"} %>