Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Mimosa's latest activity

Monday, August 23 2010
2421 Problem with has_many :through and alternate keys was updated in Ruby on Rails
  • Mimosa
    Mimosa commented at 4:29 AM

    Options for :class_name and :foreign_key are ignored

  • Mimosa
    Mimosa commented at 4:28 AM

    api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html

    :through

    Specifies a Join Model through which to perform the query. ** Options for :cl...
  • Mimosa
    Mimosa commented at 4:21 AM

    why not use change :foreign_key ?

    has_many :friendships,  :dependent => :destroy
    
    has_many :friends, :through => :friendships, :conditions => "state = 'accepte...