 <div class="row">

<% @question.answers.each do |answer| %>
    <%=link_to "+", new_question_answer_vote_path(question, answer, vote_value: 1)%>
  <%=link_to "-", new_question_answer_vote_path(question, answer, vote_value: -1) %>
  <p><%= answer.description %></p>
  <%= answer.user.username %>
  <%= answer.votes.count %>
  <br>
  <br>


  <%= render partial: "comments/show", locals: { answer: answer } %>


  <% end %>


</div>





<% @question.answers.each do |answer| %>
 <div style="margin-top:50px">
    <%=link_to "+", new_question_answer_vote_path(question, answer, vote_value: 1)%>
  <%=link_to "-", new_question_answer_vote_path(question, answer, vote_value: -1) %>
  <p><%= answer.description %></p>
  <%= answer.user.username %>
  <%= answer.votes.count %>

  <% if current_user.id == answer.user_id %>
    <%= form_for :answer, :url => { :action => "update" } do |f| %>
      <%= f.text_area :description %>
      <%= f.submit "update" %>
  <% end %>


  <% end %>

  <%= render partial: "comments/show", locals: { answer: answer } %>

  </div>


  <% end %>





Add edit form if answer belongs to user
Add edit form if answer belongs to user
