I have the rest client gem and I am defining a request like this:
url = \'http://someurl\' request = {\"data\" => data}.to_json response = RestClient.post(ur
I had the same problem with Rest-Client (1.7.2) I need to put both params and HTTP headers.
I solved with this syntax:
params = {id: id, device: device, status: status} headers = {myheader: "giorgio"} RestClient.put url, params, headers
I hate RestClient :-)