Here is my setup: class Product < ActiveRecord::Base belongs_to :catalog has_and_belongs_to_many :product_groups end
class ProductGroup < ActiveRecord::Base belongs_to :catalog has_and_belongs_to_many :products end class Catalog < ActiveRecord::Base has_many :product_groups has_many :products, :through => :product_groups end I get: Invalid source reflection macro :has_and_belongs_to_many for has_many :products, :through => :product_groups. Use :source to specify the source reflection. ---------- I have seen a few threads with posts asking this question, but found no suitable solution or workaround.. any ideas please. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

