I've been struggling with this (probably simple issue) for many days and nobody here seems to know the answer. I've asked a question and another question and I am now able to change icons to text on click.
The problem is that when I have a list of comments and I click on one of the icon (thumbs_up/thumbs_down), it changes ALL icons for all comments on the page to "Voted!".
comments index page
<% @comments.each do |comment| %>
<% comment.content %>
div class="thumbsup">
<%= link_to image_tag('othericons/thumbsup_off.PNG', height: '20', width: '20', like_post_comment_path(comment.post_id, comment), method: :put, :remote => true %>
</div>
<div class="thumbsdown">
<%= link_to image_tag('othericons/thumbsdown_off.PNG', height: '20', width: '20', dislike_post_comment_path(comment.post_id, comment), method: :put, :remote => true %>
</div>
<% end %>