passing xml using curl with two models in rails

Alkomaty

New Member
I want to pass this through curl:\[code\]<invoice>.....<invoice-details><invoice-detail>....</invoice-detail><invoice-detail>....</invoice-detail></invoice_details></invoice>\[/code\]I have two models, invoice and invoice_detail, which are associated, by the way. I have a primary key for the invoice to be passed to all the invoice_details so i can id them. for example, if the primary key is 200, i want all the details below that invoice to have a foreign key of 200, too. How am i gonna be able to achieve this? Thanks a lot.
 
Back
Top