From d1a328f413f83a33398a3b1682c8a8327184b2b0 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 14 Sep 2021 17:25:37 -0400 Subject: tidy up lists --- app/views/machines/edit.html.erb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/views/machines/edit.html.erb') diff --git a/app/views/machines/edit.html.erb b/app/views/machines/edit.html.erb index 7fd30ce..477a0ee 100644 --- a/app/views/machines/edit.html.erb +++ b/app/views/machines/edit.html.erb @@ -2,3 +2,7 @@ <%= render "form", machine: @machine %> +

<%= link_to "Delete #{@machine.name}", machine_path(@machine), + method: :delete, + data: { confirm: "Are you sure?" } %>

+ -- cgit 1.4.1