Hi-

I encountered a problem I have never seen before.  For some reason,
requests for Destroy are routing to Edit.

Here's the route:
 DELETE /instructions/:id(.:format)
{:action=>"destroy", :controller=>"instructions"}

Here's the call to render it:
  <%= link_to 'Delete', instruction, :confirm => 'Are you
sure?', :method => :delete %>

This is all from the scaffolding created by Rails.  Whenever that link
is clicked, it routes the user to the Edit page.

If I look at the logs, it looks like a GET request is made instead of
a Delete.

Has anyone seen this before?

-- 
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