摘要: build定义:collection.build(attributes = {}, …) 本例子中collection换成cart_items. 说明:这个method返回一个或多个new objects of the associated type.但关联的对象尚未保存。需要save. Creat 阅读全文
posted @ 2017-12-12 11:20 Mr-chen 阅读(368) 评论(0) 推荐(0) 编辑