开发者

Creating and submitting collections clientside, and then posting to server without AJAX?

开发者 https://www.devze.com 2023-02-09 09:07 出处:网络
My Customer model has many Orders. I am collecting the data for multiple Orders 开发者_高级运维clientside using jQuery.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号