Sounds to me like you aren't setting the HTTP Method on your client
side update/insert/delete requests.

For example in curl you would do this with -X   =>    curl -X delete
http://server/resource/2     to delete resource 2

Sounds to me like you are sending GET requests to an action that
expects something different

Say you want to delete a resource 4 on localhost The header should
resemble roughly something like this.

> delte / HTTP/1.1
> User-Agent: curl/7.19.0 (i386-apple-darwin9.4.0) libcurl/7.19.0 zlib/1.2.3
> Host: localhost
> Accept: */*

I'm not sure about how you want to write the client but you can also
include a request param "_method" and give it the corresponding HTTP
method. (PUT, POST, DELTE etc.)
--~--~---------~--~----~------------~-------~--~----~
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