has_many => through association for rails polymorphic model

Example of polymorphic association using has_many, through, source.class student  has_many :posts, :as => authorendclass teacher  has_many :posts, :as => authorendclass post  belongs to :author, :polymorphic => trueendclass division  has_many :students  has_many :student_posts, :through => :students, :source => :postsendruby script/consolediv = Division.firstdiv.student_postsCheers !S@ndip