阅读背景:

Ruby / Rails - 在创建子记录时隐式创建父记录?

来源:互联网 

Ok this is a bit unusual, but I have a series of data collection forms that save data to their respective models. What I want to do is auto insert a common parent (activity/event log - separate model) record that will be common to each form. (All forms will save an implicit record in this model, before saving the child record). So the save sequence needs to be as follows:Ok this is a bit unusual, but I have a series o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: