From 55cd0e4dfd8681a814faab262d53101a657f32d6 Mon Sep 17 00:00:00 2001 From: chaseguynn Date: Wed, 21 Oct 2015 16:27:08 -0500 Subject: [PATCH] display publisher and category items in front end --- app/views/categories/show.html.haml | 3 +++ app/views/publishers/show.html.haml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/views/categories/show.html.haml b/app/views/categories/show.html.haml index 5449cae..90a312a 100644 --- a/app/views/categories/show.html.haml +++ b/app/views/categories/show.html.haml @@ -13,6 +13,9 @@ %li.list-group-item %strong Description = @category.description + %li.list-group-item + %strong Items + = @category.items.map(&:item_type).uniq.join(', ') = link_to 'Edit', edit_category_path(@category) | \#{link_to 'Back', categories_path} diff --git a/app/views/publishers/show.html.haml b/app/views/publishers/show.html.haml index 704100f..c2c5713 100644 --- a/app/views/publishers/show.html.haml +++ b/app/views/publishers/show.html.haml @@ -13,6 +13,9 @@ %li.list-group-item %strong Website = @publisher.website + %li.list-group-item + %strong Items + = @publisher.items.map(&:item_type).uniq.join(', ') = link_to 'Edit', edit_publisher_path(@publisher) | \#{link_to 'Back', publishers_path}