diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index 36db0df..335df45 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -17,7 +17,7 @@
<% post.recent_comments.each do |comment| %> -

<%= @user.name %>: <%= comment.text %> <%= comment.id %>

+

<%= @user.name %>: <%= comment.text %>

<% end %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 8c57293..64b37bd 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -14,7 +14,7 @@

<%= link_to "Post #", user_post_url(@user.id, post.id) %><%= post.id %>

<%= post.text %>

-

Comments:<%= post.comments_counter %>,Likes:<%= post.likes_counter %>

+

Comments:<%= post.comments_counter %>,Likes:<%= post.likes.size %>

<% end %> <%= link_to user_posts_path(@user.id) do %>