what are the other objects? What is it that has_and_belongs_to_many? for polymorphic relationships you want to ask if more than one So class Ad belongs_to :adable, :polymorphic => true end
class Customer has_many :ads, :as => :adable end class NewsPaper has_many :ads, :as=>:adable end At least I think this is what you are looking for. Maybe some others will give advice. On Feb 8, 10:40 am, regedarek <dariusz.fins...@gmail.com> wrote: > I create a Gist with my recent ideas:https://gist.github.com/1770515 > ** <http://groups.google.com/group/rubyonrails-talk?hl=pl> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.