Perish

博客园 首页 联系 订阅 管理

2014年6月27日

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