diff options
author | Marius Peter <marius.peter@tutanota.com> | 2024-11-11 16:55:14 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2024-11-11 16:55:14 +0100 |
commit | fea9476a591559bd8fdcf17b64e5114c592a5b08 (patch) | |
tree | 08aa0fdd62752f1d286aa66ac77413fb03d6d737 /app/views/wines/show.html.erb |
C'est l'heure d'assurer le suivi de quelques flacons!main
Diffstat (limited to 'app/views/wines/show.html.erb')
-rw-r--r-- | app/views/wines/show.html.erb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/wines/show.html.erb b/app/views/wines/show.html.erb new file mode 100644 index 0000000..cd8925d --- /dev/null +++ b/app/views/wines/show.html.erb @@ -0,0 +1,17 @@ +<!-- -*- mode: web; -*- --> + +<li><%= link_to "Back to homepage", root_path %></li> + +<h1><%= @wine.name %></h1> +<h2><%= @wine.year %></h2> +<p><%= @wine.notes %></p> + +<ul> + <li><%= link_to "Edit", edit_wine_path(@wine) %></li> + <li><%= link_to "Destroy", + wine_path(@wine), + data: { + turbo_method: :delete, + turbo_confirm: "Are you sure you want to delete #{@wine.name}?" + } %></li> +</ul> |