My Customer model has many Orders. I am collecting the data for multiple Orders 开发者_高级运维clientside using jQuery.
What data structure is best for storing the Order collection clientside whilst I am building it?
How can I then submit this collection back to the server WITHOUT using ajax? Just when the user has finished building the Order collection and submits the form normally back to the server?
It's well presented here:
http://railscasts.com/episodes/196-nested-model-form-part-1
See episode 2 if needed:
http://railscasts.com/episodes/197-nested-model-form-part-2
精彩评论