摘要:
class Customer < ActiveRecord::Base has_many :ordersendclass Order < ActiveRecord::Base belongs_to :customerend如上代码两个model在做如下查询的时候:c = Customer.fir... 阅读全文
posted @ 2014-06-27 16:49
---小青年---
阅读(653)
评论(0)
推荐(0)
浙公网安备 33010602011771号