Skip to content

Commit

Permalink
[#11] Changed @comment to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmckissock committed Jul 1, 2024
1 parent 74d1178 commit 84a7fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/comments/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Posted on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
- Score: <span id="score-Comment-<%= comment.id %>"><%= comment.score %></span>
<% user_vote = @user_votes[comment.id] %>
<%= button_to "Upvote", upvote_article_comment_path(comment), method: :post, class: "btn btn-sm upvote-button", data: { votable_type: 'Comment', votable_id: @comment.id, article_id: @comment.article.id } %>
<%= button_to "Downvote", downvote_article_comment_path(comment), method: :post, method: :post, class: "btn btn-sm downvote-button", data: { votable_type: 'Comment', votable_id: @comment.id, article_id: @comment.article.id } %>
<%= button_to "Upvote", upvote_article_comment_path(comment), method: :post, class: "btn btn-sm upvote-button", data: { votable_type: 'Comment', votable_id: comment.id, article_id: comment.article.id } %>
<%= button_to "Downvote", downvote_article_comment_path(comment), method: :post, method: :post, class: "btn btn-sm downvote-button", data: { votable_type: 'Comment', votable_id: comment.id, article_id: comment.article.id } %>
</div>
<h2>Replies</h2>
<ul>
Expand Down

0 comments on commit 84a7fc6

Please sign in to comment.