Joerg Diekmann
2006-Jan-22 12:33 UTC
[Rails] Using AWS to pass in an object and associations
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 -- Posted via http://www.ruby-forum.com/.
Maybe Matching Threads
- Saving one-many associations (elegant solution please)
- association not inserted automatically.
- redirect on browser success, but redirect on functional test is error
- How to test views with Nested Resources and Partials
- Problem updating child row from parent model