Google Groups

Re: update_hash.delete?

Mark Zweedijk Apr 10, 2012 8:09 AM
Posted in group: rhomobile 

As I can see the point is that they don't have a update-method. So they first delete the existing record and then create a new one. If the http-code is different then 200, they raise an exception. I hope this was your question.

Op dinsdag 10 april 2012 15:12:42 UTC+2 schreef jwargo het volgende:
Looking at one of the examples for Update, the source adapter has the following code:

obj_id = update_hash['id']
RestClient.put("#{@base}/#{obj_id}",:product => update_hash)

What’s the point of the update_hash.delete(‘id’)? What does that affect?