summaryrefslogtreecommitdiff
path: root/app/views/crops/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/crops/index.html.erb')
-rw-r--r--app/views/crops/index.html.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/crops/index.html.erb b/app/views/crops/index.html.erb
new file mode 100644
index 0000000..bae09fa
--- /dev/null
+++ b/app/views/crops/index.html.erb
@@ -0,0 +1,16 @@
+<p style="color: green"><%= notice %></p>
+
+<% content_for :title, "Crops" %>
+
+<h1>Crops</h1>
+
+<div id="crops">
+ <% @crops.each do |crop| %>
+ <%= render crop %>
+ <p>
+ <%= link_to "Show this crop", crop %>
+ </p>
+ <% end %>
+</div>
+
+<%= link_to "New crop", new_crop_path %>
Copyright 2019--2025 Marius PETER