diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-08-24 20:29:54 +0200 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-08-24 20:29:54 +0200 |
commit | 52b044d6a4278c229992404ad5801769c2d13363 (patch) | |
tree | b30b34da58f26117c035391d09366b190350b1e3 /app/views/crops/index.html.erb |
First commit.
Vive le Castel Peter !
Diffstat (limited to 'app/views/crops/index.html.erb')
-rw-r--r-- | app/views/crops/index.html.erb | 16 |
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 %> |