Skip to content

Commit 7eef6a2

Browse files
committed
[#11] Changed @comment to comment
1 parent 913fe1c commit 7eef6a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/comments/show.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Posted on <%= comment.created_at.strftime("%B %d, %Y at %I:%M %p") %>
55
- Score: <span id="score-Comment-<%= comment.id %>"><%= comment.score %></span>
66
<% user_vote = @user_votes[comment.id] %>
7-
<%= 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 } %>
8-
<%= 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 } %>
7+
<%= 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 } %>
8+
<%= 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 } %>
99
</div>
1010
<h2>Replies</h2>
1111
<ul>

0 commit comments

Comments
 (0)