summaryrefslogtreecommitdiff
path: root/app/views/wines/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/wines/index.html.erb')
-rw-r--r--app/views/wines/index.html.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/wines/index.html.erb b/app/views/wines/index.html.erb
new file mode 100644
index 0000000..0202ada
--- /dev/null
+++ b/app/views/wines/index.html.erb
@@ -0,0 +1,16 @@
+<!-- -*- mode: web; -*- -->
+
+<h1>Wines#index</h1>
+<h2>List of wines</h2>
+
+<%= link_to "Add Wine", new_wine_path %>
+
+<ul>
+ <% @wines.each do |wine| %>
+ <li>
+ <%= link_to wine.name, wine %>,
+ <%= wine.year %>,
+ <%= wine.variety %>
+ </li>
+ <% end %>
+</ul>
Copyright 2019--2024 Marius PETER