Forum: Ruby on Rails Using AWS to pass in an object and associations

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joerg D. (Guest)
on 2006-01-22 14:33
I, I have an object and associations, say order and line_items.
I want to submit this order and its lineitems to a central server using
AWS.

One way is to have an AWS method to submit the order object, and another
method to submit each line_item individually (as I can't have a typed
array as an :expects parameters) - so I can't submit all my line_items
in one go. This is expensive, though - I want to keep my AWS calls to a
bare minimum.

Is there a better way? Say building up a YAML or XML string and shoving
all that into an :expects parameter? Or am I missing some other obvious
solution?

Thanks
Joerg
This topic is locked and can not be replied to.