阅读背景:

Rails中的Active Record和设置关系的问题

来源:互联网 

I currently have a controller in rails, where i create a model object and set a relationship to that model object. I want that relationship as a response, but if the model object gets created within the first request, i get nil for the relationship. After the first request I'll get the right relationship as a response. Do I have to update the model object after setting a relationship, just after creating the object model?I currently have a controller in rails, where i




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

分享到: