Gianluca Tessarolo wrote:
> Try this:

I tried both suggestions and received similar results.  I get the 
following errors:

ActiveRecord::RecordNotFound in Rushing offensesController#show

Couldn't find RushingOffense with ID=destroyall

Request
Parameters:

{"confirm"=>"Are you sure?",
 "method"=>"delete",
 "id"=>"destroyall"}

Response
Headers:

{"Cache-Control"=>"no-cache",
 "Content-Type"=>""}


The only changes I made to the code above was for route I needed to do:

map.resources :rushing_offenses, :collection => { :destroyall => :delete 
}

.. because rushing_offenses without the : symbol gave an error..


-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to