Polymorphic :through associations

Could someone please help me with this association scheme? I am
familiar with habtm as well as the :through association but this one
has me stumped.

Here is an example DB.

Tags Table:

Maybe something like this would work for you?

http://wiki.rubyonrails.org/rails/pages/ManytoManyPolymorphicAssociations

-ns