List Info

Thread: RESTFul Net::HTTP Delete ?




RESTFul Net::HTTP Delete ?
user name
2008-01-21 12:24:39
for GET I am using
Net::HTTP.get(URI(url))

for POST I am using
resp, data = Net::HTTP.post_form(url, post_args.merge!
(post_args1).merge!)

what should I use for DELETE ?

I tried
result = Net::HTTP:elete.ne
w(URI(url))
but it's not accepted;..

thanks for your light

Kad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http://gro
ups.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )