Let's say I have the following models:
User has_many :orders has_many :items, :through => :orders
Order belongs_to :user has_many :items has_many :products, :through => :items
Item belongs_to :order belongs_to :product
Product has_many :items has_many :orders, :through => items
Is it possible to do: @user = User.find(1) @products = @user.products
I have tried but it ddin't work. If it is impossible to do, what would be the solution to that?