Rails "No Route" when the rake routes shows it exists
<p>I'm getting a <code>No route matches [DELETE] "/users"</code> when rake routes shows:</p>

<pre><code>     user GET    /users/:id(.:format)         users#show
     PATCH  /users/:id(.:format)         users#update
     PUT    /users/:id(.:format)         users#update
     DELETE /users/:id(.:format)         users#destroy
</code></pre>

<p>In my view I have this link and path:</p>

<pre><code>      &lt;td&gt;&lt;%= link_to 'Destroy', user_path(user, :id =&gt; user.email), data: { confirm: 'Are you sure?' } %&gt;&lt;/td&gt;
</code></pre>

<p>As you can see above, I'm sending an <code>id</code> param.</p>

<p>I can fix this by adding this to routes:</p>

<pre><code>delete 'users' =&gt; 'users#destroy'
</code></pre>

<p>But then when I check <code>params</code> in the controller, it has no <code>id</code> attribute. I have also tried</p>

<pre><code>delete 'users/:id' =&gt; 'users#destroy'
</code></pre>

<p>Here's what the params look like:</p>

<pre><code>{"_method"=&gt;"delete", "authenticity_token"=&gt;"r81EQsF0z2eoIUTIrc3Rd2pQlVRNL6iEcM58DzkkOWCeLg+LLudBwhVvSyM7DTRXm2EGvKaMwCT+orbG8YDuOg==", "controller"=&gt;"users", "action"=&gt;"destroy"}
</code></pre>