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.