diff --git a/app/views/families/_family.json.jbuilder b/app/views/families/_family.json.jbuilder index 97929c3..cc980f5 100644 --- a/app/views/families/_family.json.jbuilder +++ b/app/views/families/_family.json.jbuilder @@ -10,6 +10,7 @@ end json.plants family.plants do |plant| json.id plant.id json.name plant.name + json.year_acquired plant.year_acquired json.status plant.status.name json.created_at plant.created_at json.updated_at plant.updated_at diff --git a/app/views/plants/_plant.json.jbuilder b/app/views/plants/_plant.json.jbuilder index 04e40b8..0e8a740 100644 --- a/app/views/plants/_plant.json.jbuilder +++ b/app/views/plants/_plant.json.jbuilder @@ -1,4 +1,4 @@ -json.extract! plant, :id, :name, :created_at, :updated_at +json.extract! plant, :id, :name, :year_acquired, :created_at, :updated_at json.genus do json.extract! plant.genus, :id, :name, :created_at, :updated_at