【发布时间】:2011-02-01 10:27:48
【问题描述】:
ActiveRecord 查询中的“includes”和“joins”有什么区别?谁能用以下两个关联模型向我解释一下?
class Car < ActiveRecord::Base
belongs_to :store
end
class Store < ActiveRecord::Base
belongs_to :owner
has_one :car
end
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3