From b17ef5fac7c5d79d603d37d7c8969fb5be5cd0f9 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 10 Mar 2021 15:51:11 +0500 Subject: [PATCH] Display followers and following count --- app/views/profiles/show.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index 4a2206f..cedbb3b 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -1,5 +1,13 @@

<%= @profile.full_name %>

+

+ <%= @profile.following_profiles.count %> + Followers + • + <%= @profile.followed_profiles.count %> + Following +

+

<%= @profile.description %>

<% @profile.posts.each do |post| %>