On Tue, Feb 28, 2012 at 10:43 AM, amvis <[email protected]> wrote: ...
> * response = RestClient.post 'http://localhost:3001/branches', > forrest.to_json, :content_type => :json, :accept => :json* > case response > > when 200 > puts "success" > when 201 > puts "created" > else > puts "failed....." > > end > > * rescue => e* > * puts "showing the fail......"* > Make that: puts "Error: #{e.inspect}" and you will get more info about the problem HTH, Peter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

