Displaying 1 result from an estimated 1 matches for "taggableend".
Did you mean:
  taggable_id
  
2012 Sep 08
3
Polymorphic has_and_belongs_to_many association
...ecute SQL that 
leads me to whatever data I want to fetch. I would then gladly remove the 
models, keep the DB tables, and have is all work with some kind of 
has_and_belongs_to_many polymorphic magic. Something like:
class Song < ActiveRecord::Base
  has_and_belongs_to_many :genres, :as => :taggableend
class Genre < ActiveRecord::Base
  has_and_belongs_to_many :taggables, :polymorphic => trueend
or similar, I haven''t put much thought into that. I would like to hear some 
opinion of more experienced Rails developers to know if this would be a 
valuable feature. 
 
-- 
You received...