class Member < ActiveRecord::Base has_many :contact_references has_many :contacts, through: :contact_references # contacts are of class Member end m1 = Member.new m2 = Member.new m1.contacts.include? m2 # => false m1.contacts << m2 m1.contacts.delete m2 m1.contacts # => [] m1.contacts.include? m2 # => true W00t? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_UBcGCXWUIQJ. For more options, visit https://groups.google.com/groups/opt_out.