From 5d95b21b482dff86ff1122c63969c913c2400ee7 Mon Sep 17 00:00:00 2001 From: Xero Date: Tue, 5 Mar 2024 14:26:47 -0500 Subject: [PATCH] add year_acquired to view --- app/views/plants/_plant.html.erb | 5 +++++ app/views/plants/index.html.erb | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/views/plants/_plant.html.erb b/app/views/plants/_plant.html.erb index 63bba1c..3b689b6 100644 --- a/app/views/plants/_plant.html.erb +++ b/app/views/plants/_plant.html.erb @@ -24,6 +24,11 @@ <%= @plant.name %> + + Year Acquired + <%= @plant.year_acquired %> + + Family <%= @plant.family.name %> diff --git a/app/views/plants/index.html.erb b/app/views/plants/index.html.erb index 813cfe5..f9240c4 100644 --- a/app/views/plants/index.html.erb +++ b/app/views/plants/index.html.erb @@ -17,6 +17,7 @@ Family Genus Status + Since URL Search @@ -28,6 +29,7 @@ <%= plant.family.name %> <%= plant.genus.name %> <%= plant.status.name %> + <%= plant.year_acquired %> Show