From d117dea29052b1ca23b1c848d92f1f9803945304 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 20 May 2021 18:43:06 -0400 Subject: Display learned activities count on characters#show --- app/views/characters/show.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index 3ee7088..4f2ae2e 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -1,7 +1,11 @@ -

+

<%= @character.name %>

-

First entered the planes <%= pluralize((Date.current - @character.created_at.to_date).to_i, "day") %> ago.

+ +

First entered the planes + <%= pluralize((Date.current - @character.created_at.to_date).to_i, "day") %> ago.

+ +

Learned <%= @character.learned_activities.count %> recipe(s) or technique(s).

Skills

-- cgit v1.2.3