<div class="comment col-center col-10">

  <h4><i class="fa fa-user"></i> <%= comment.user ? comment.user.name : 'Default' %></h4>
  <p><%= comment.body %></p>

  <% if comment.user.id == session[:current_user] %>
    <%= link_to 'Edit', edit_comment_path(comment) %>
    <%= link_to 'Delete', comment, method: :delete, data: {confirm: "You sure bub?" } %>
  <% end %>

</div>

<div class="comment col-center col-10">

  <h4><i class="fa fa-user"></i> <%= comment.user ? comment.user.name : 'Default' %></h4>
  <p><%= comment.body %></p>

  <% if comment.user.id == session[:current_user] %>
    <%= link_to 'Edit', edit_comment_path(comment) %>
    <%= link_to 'Delete', comment, method: :delete, data: {confirm: "You sure bub?" } %>
  <% end %>

  <button data-id="<%comment.id%>" class="upvote">UpVote</button>

</div>

Prepare upvote button for ajax call.
Prepare upvote button for ajax call.
