Quoting itsastickup <[email protected]>:
> 
> 
> I have this in a functional test:
> 
> xml_http_request :delete, person_movie_path(1,1)
> 
> and the error I get says the action cannot be found, as if the
> ':delete'  method is not being translated to the appropriate destroy
> action. It works fine as an Ajax call from the browser.
> 

Probably wrong path.  Check the URL generated by "person_movie_path(1,1)"
against the output of "rake routes".

HTH,
  Jeffrey

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