search for: groom_id

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

Did you mean: room_id
2006 Feb 12
3
Error when Eager Loading "Not unique table/alias"
...base class (not STI) Example: <code> class Wedding < ActiveRecord::Base belongs_to :bride, :class_name => ''Person'', :foreign_key => ''bride_id'' belongs_to :groom, :class_name => ''Person'', :foreign_key => ''groom_id'' end </code> Trying to eager load the bride and groom classes blows up because the "people" table is left outer joined twice: <code> Wedding.find(:first, :include => [:bride, :groom]) </code> Is there a way to specify an alias for the table name? (like...