How do you set route to the delete action? The other day I met same problem, I modified link_to's second argument(after first "name" argument) to application path and then worked fine at the time. Might fit into your case, maybe.
On 1/27/11, Fearless Fool <[email protected]> wrote: > Marnen Laibow-Koser wrote in post #977726: >> Browsers generally only support GET and POST. When Rails generates a >> DELETE link, what it's actually doing is generating a GET link with >> _method=delete. Rails parses the _method parameter and treats it >> exactly as if it were a real DELETE request. > > Hi Marnen. I understand your explanation. But my > PremisesController#show method is getting called, not > PremisesController#destroy method. At the time the show() method is > called, params looks like: > > params={"action"=>"show", "controller"=>"premises", "id"=>"2"} > > So where did things go astray? (More constructively, where should I > look / how would you debug this?) > > -- > 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. > > -- 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.

