Closed mderar closed 12 years ago
I have the following code:
class Client < Weary::Client put :update, "/products/{id}" end
How can I send a params hash to update a specific product? i.e. I need to be able to do something like:
client.update :id=>'3', params
You would add the additional params using the optional method of a resource:
params
optional
put :update, "/products/{id}" do |r| r.optional :expected_keys end
I have the following code:
How can I send a params hash to update a specific product? i.e. I need to be able to do something like: