search for: list_subscrib

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

2010 Sep 29
2
Railroad problem with :through?
I have the following model layout: class List < ActiveRecord::Base has_many :subscribers, :through => :list_subscribers has_many :list_subscribers end class Subscriber < ActiveRecord::Base has_many :lists has_many :lists, :through => :list_subscribers end class ListSubscriber< ActiveRecord::Base belongs_to :list belongs_to :subscriber validates_uniqueness_of :subscriber_id, :scope => :list_id end...