Example of polymorphic association using has_many, through, source.
class student
has_many :posts, :as => author
end
class teacher
has_many :posts, :as => author
end
class post
belongs to :author, :polymorphic => true
end
class division
has_many :students
has_many :student_posts, :through => :students, :source => :posts
end
ruby script/console
div = Division.first
div.student_posts
Cheers !
S@ndip