title: ruby on rails - link_to() problem
body: <p>I made this link in order to destroy a comment :</p>
  
  <pre><code>    &lt;%= link_to 'Destroy Comment', [comment.post, comment],
      :confirm =&gt; 'Are you sure?',  :method =&gt; :delete %&gt;
  </code></pre>
  
  <p>this suppose to send to the destroy action in the comments_controller.</p>
  
  <p>the problem is that it searches for the 'show' action, Instead of the 'destroy' action :</p>
  
  <pre><code>   Unknown action
  
     The action 'show' could not be found for CommentsController
  </code></pre>
  
  <p>Do you think you know why it does that?</p>
  
  <p>Thanks,</p>
  
  <p>Oded</p>
  
  <p>edit: problem solved I used 'button_to'</p>