How do I set up a :through ActiveRecord association in Ruby On Rails?
<p>I am having trouble figuring out associations. I need to link up a User to Feedback through Transactions. Feedback has transaction_id property and Transaction has seller_id. How would I do that using associations? Here is what I have so far, appreciate your help! Thanks!</p>

<pre><code>class Feedback &lt; ActiveRecord::Base
     belongs_to :user
end

class User &lt; ActiveRecord::Base
    has_many :feedbacks
end

class Transaction &lt; ActiveRecord::Base
    belongs_to :seller, :class_name =&gt; 'User', :foreign_key =&gt; 'seller_id'
end
</code></pre>