【发布时间】:2011-10-16 23:33:33
【问题描述】:
如何在“has_many :through”关系中查询具有某个Branch的Companies?
#company.rb
has_many :branch_choices
has_many :branches, :through => :branch_choices
“查找分公司 ID 为 3 的所有公司”
【问题讨论】:
标签: ruby-on-rails-3 activerecord has-many-through