Im using Net :: HTTP in my ruby โโcode to execute http requests. For example, to make a send request, I do
require 'net/http' Net::HTTP.post_form(url,{'email' => email,'password' => password})
It works. But they failed to make a delete request, i.e.
require 'net/http' Net::HTTP::Delete(url)
gives the following error:
NoMethodError: undefined method `Delete' for Net::HTTP:Class
The documentation at http://ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/Net/HTTP.html indicates that deletion is available. So why does this not work in my case?
thanks
source share