about summary refs log tree commit diff
path: root/app/views/machines/show.html.erb
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2021-08-21 19:30:19 -0400
committerBen Harris <ben@tilde.team>2021-08-21 19:30:33 -0400
commit819a3edae405227f11283ad494a7f4ca9c771467 (patch)
tree8da57ee1777f992f4f13879795916615009f6a53 /app/views/machines/show.html.erb
init
Diffstat (limited to 'app/views/machines/show.html.erb')
-rw-r--r--app/views/machines/show.html.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/machines/show.html.erb b/app/views/machines/show.html.erb
new file mode 100644
index 0000000..9be144a
--- /dev/null
+++ b/app/views/machines/show.html.erb
@@ -0,0 +1,11 @@
+<h1><%= @machine.name %></h1>
+
+<p>Edition: <%= @machine.edition %></p>
+
+<ul>
+  <li><%= link_to "Edit Pinball Machine", edit_machine_path(@machine) %></li>
+  <li><%= link_to "Delete", machine_path(@machine),
+    method: :delete,
+    data: { confirm: "Are you sure?" } %></li>
+</ul>
+