阅读背景:

Rails控制器中的错误处理,用于将嵌入的Mongoid文档添加到Model

来源:互联网 

I have a Item model that has embedded documents. Currently, the following comments_controller code will add a comment to the item successfully. However, if pushing the comment document onto the comments array on item fails, I will not know this. I have a Item model that has embedded documents




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

分享到: