1
最終日に作成されたポジションを持つスキルを購読しているユーザーを見つけるにはどうすればよいですか?結合モデルを介して属性を検索する方法は?
私は可能性がしたい:User.find(すべて).where.skills.positions -
Company
has_many :positions
has_many :skills, :through => :positions
Position
belongs_to :company
belongs_to :skill
Skill
has_many :positions
has_many :companies, :through => :positions
has_many :subscriptions
has_many :users, :through => :subscriptions
Subscription
belongs_to :skill
belongs_to :user
User
has_many :subscriptions
has_many :skills, :through => :subscriptions
ありがとうございました!できます。私は "include({:skills =>:positions}"についてもっと学ぶべきです。 –