Rails: ActiveRecord::HasManyThroughSourceAssociationNotFoundError: Could not find the source association(s)
I have the following code (somewhat simplified ... create_table :signatures do |t| t.integer :signer_id t.integer :card_id t.timestamps end With the models looking like ... class Signature < ActiveRecord::Base belongs_to :card belongs_to :user end class Card < ActiveRecord::Base has_many :signatures has_many :signers, :through => :signatures, :foreign_key => "card_id" end class User < ActiveRecord::Base has_many :sent_cards, :class_name => "Card", :foreign_key => "sender_id" has_many :received_cards, :class_name => "Card", :foreign_key => "recipient_id" has_many :signatures has_many :signed