Are there good references teaching you how to send PUT/DELETE/POST/GET with ruby?
I have looked at Net::HTTP.
Is this library capable of all four methods? I couldn't find how to send with PUT.
Are there other good libraries for all these four methods?
You should definitely look at HTTParty. It's an easy to use library to deal with RESTful requests, JSON responses and so forth.
The simplest way would probably be to use the rest client gem. Then you can do stuff like
RestClient.get 'http://example.com/resource', {:params => {:id => 50, 'foo' => 'bar'}}
EDIT: changed url to a more up to date one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With