title: ROR ways of calling destroy action
body: <p>I ask this question only because I'm curious.</p>
  
  <p>The first line is standard, RESTful and of course invokes destroy method.
  The second line returns a routing error.</p>
  
  <p>The question is how to repair the second line to work like the first one. As I mentioned before, It's just for my curiosity and better ROR understanding.</p>
  
  <pre><code>&lt;%= link_to 'delete', file, :method =&gt; :delete %&gt;&lt;/td&gt;
  &lt;%= link_to 'delete', {:action =&gt; :destroy, :controller =&gt; 'files', :id =&gt; file.id.to_s}, :method =&gt; :delete %&gt;
  </code></pre>
  
  <p>Bye</p>