has-many-through

Model traversal in rails: from child to sibling's child

Hi, I have the following model: class Advisor < ActiveRecord::Base belongs_to :course end class Course < ActiveRecord::Base has_many :advisors has_many :sessions has_many :materials, :through=>:sessions end class Session < ActiveRecord::Base belongs_to :course has_many :materials end class Material < ActiveRecord::Base ...