search for: clubs_people_applied

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

2006 Mar 13
3
HABTM: two habtm''s between the same two tables
...abtm between the two, in order to associate people with clubs that they belong to. However my application also needs a secondary association just like this: imagine I want to track the clubs that a person has APPLIED to join, but is not yet a member. So I have a second association table table clubs_people_applied with columns person_id, club_id In other words, I need TWO habtm''s between the same two tables. Where this is failing I think is in the model definitions: Class Person < ActiveRecord::Base has_and_belongs_to_many :clubs, :join_table => clubs_people has_and_belongs_to_many :cl...