title: Problem with restful route in Rails 3
body: <p>I have the following in routes.rb:</p>
  
  <pre><code>  resource :account, :controller =&gt; "accounts"
    resources :accounts
  </code></pre>
  
  <p>this redirect is in a controller:</p>
  
  <pre><code>  redirect_to account_url
  </code></pre>
  
  <p>and when this redirect is called, I get the following error:</p>
  
  <p>Routing Error</p>
  
  <p>No route matches {:action=>"destroy", :controller=>"accounts"}</p>
  
  <p>The following are displayed when running <em>rake routes</em>:</p>
  
  <p>...<br>
  ...<br>
  accounts DELETE /accounts(.:format)  {:action=>"destroy", :controller=>"accounts"}<br>
  ...<br>
  ...<br>
  account DELETE /accounts/:id(.:format) {:action=>"destroy", :controller=>"accounts"}<br>
  ...<br>
  ...  </p>
  
  <p>So it seems to me that I've got the {:action=>"destroy", :controller=>"accounts"} covered -> according to <em>rake routes</em> anyways. Anyone have an idea as to what I'm doing wrong?</p>