search for: metergroup

Displaying 1 result from an estimated 1 matches for "metergroup".

Did you mean: meter_group
2010 Aug 18
6
Once I added this HABTM, one of my 'through' relationships, on a non-habtm model, seems to have broke?
...anyThroughSourceAssociationMacroError: Invalid source reflection macro :has_and_belongs_to_many for has_many :meters, :through => :meter_group. Use :source to specify the source reflection. Here are some of the other relevant tables and migrations (stripped of a few non-related fields): class MeterGroup < ActiveRecord::Base belongs_to :user, :foreign_key => "user_id" has_and_belongs_to_many :meters end class Meter < ActiveRecord::Base has_and_belongs_to_many :meter_groups belongs_to :user, :foreign_key => "user_id" end #Migrations (removed some cols and dr...