Method: WWW::Mechanize#put

Defined in:
lib/www/mechanize.rb

#put(url, query_params = {}, options = {}) ⇒ Object

PUT to url with query_params, and setting options:

put('http://tenderlovemaking.com/', {'q' => 'foo'}, :headers => {})


243
244
245
246
247
# File 'lib/www/mechanize.rb', line 243

def put(url, query_params = {}, options = {})
  page = head(url, query_params, options.merge({:verb => :put}))
  add_to_history(page)
  page
end