标签: ruby-on-rails relation activerecord-relation
has_many through关系创建的模型如下所示:
class MerchantOrder < ActiveRecord::Base belongs_to :order belongs_to :user has_many :products end
但我不确定这是否可行。有什么理由不起作用吗?