title: Undefined method in controller (Routing)
body: <p>I'm new at rails and I'm currently working on an already existing application that handles butons like so:</p>
  
  <pre><code>&lt;%= link_to 'Edit', edit_answer_path(ans) %&gt;
  </code></pre>
  
  <p>That links to the file /answers/edit.html.erb but now I need to make a button that links to the file /answers/comment.html.erb how do I go about doing this?</p>
  
  <p>I already tried with </p>
  
  <pre><code>&lt;%= link_to 'Comment', comment_answer_path(ans) %&gt;
  </code></pre>
  
  <p>but I get the error "Undefined method 'comment_answer_path'" even after adding this lines to answers_controller :</p>
  
  <pre><code>def comment
    ans = Answer.find(params[:id])
  end
  </code></pre>