about summary refs log tree commit diff
path: root/app/views/machines/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/machines/edit.html.erb')
-rw-r--r--app/views/machines/edit.html.erb4
1 files changed, 4 insertions, 0 deletions
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 %>
 
+<p><%= link_to "Delete #{@machine.name}", machine_path(@machine),
+    method: :delete,
+    data: { confirm: "Are you sure?" } %></p>
+