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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to