Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cosywasswa committed Sep 26, 2023
1 parent e3c2e0b commit a587525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/posts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<div class="comment-cont">
<% post.recent_comments.each do |comment| %>
<p><%= @user.name %>: <%= comment.text %> <%= comment.id %></p>
<p><%= @user.name %>: <%= comment.text %></p>
<% end %>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="post-details">
<h2><%= link_to "Post #", user_post_url(@user.id, post.id) %><%= post.id %></h2>
<h3><%= post.text %></h3>
<p>Comments:<%= post.comments_counter %>,Likes:<%= post.likes_counter %></p>
<p>Comments:<%= post.comments_counter %>,Likes:<%= post.likes.size %></p>
</div>
<% end %>
<%= link_to user_posts_path(@user.id) do %>
Expand Down

0 comments on commit a587525

Please sign in to comment.