From 4e417b709a0a33fdda841aeffe5c6f1100822e24 Mon Sep 17 00:00:00 2001 From: Julien Kirch Date: Mon, 31 May 2010 19:56:41 +0200 Subject: [PATCH] separated params get example from https example --- README.rdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 2c57c65..5cd0197 100644 --- a/README.rdoc +++ b/README.rdoc @@ -13,7 +13,9 @@ of specifying actions: get, put, post, delete. RestClient.get 'http://example.com/resource' - RestClient.get 'https://user:password@example.com/private/resource', {:accept => :json, :params => {'foo' => 'bar'}} + RestClient.get 'http://example.com/resource', {:params => {:id => 50, 'foo' => 'bar'}} + + RestClient.get 'https://user:password@example.com/private/resource', {:accept => :json} RestClient.post 'http://example.com/resource', :param1 => 'one', :nested => { :param2 => 'two' }