1
0
Fork 0

Display followers and following count

master
Alex Kotov 2 years ago
parent c3a9f837bb
commit b17ef5fac7
  1. 8
      app/views/profiles/show.html.erb

@ -1,5 +1,13 @@
<h1><%= @profile.full_name %></h1>
<p>
<%= @profile.following_profiles.count %>
Followers
&#8226;
<%= @profile.followed_profiles.count %>
Following
</p>
<p><%= @profile.description %></p>
<% @profile.posts.each do |post| %>