about summary refs log tree commit diff
path: root/app/views/players/edit.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/players/edit.html.erb')
-rw-r--r--app/views/players/edit.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/players/edit.html.erb b/app/views/players/edit.html.erb
index 797c846..49cf670 100644
--- a/app/views/players/edit.html.erb
+++ b/app/views/players/edit.html.erb
@@ -2,3 +2,7 @@
 
 <%= render "form", machine: @player %>
 
+<%= link_to "Delete", player_path(@player),
+    method: :delete,
+    data: { confirm: "Are you sure?" } %>
+