search for: people_friends

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

2006 Feb 21
7
Self-referencial habtm relationship
Heyo! I am setting up a self-referencial habtm relationship with the users of my app. I am using Chad Fowler''s "Rails Recipes" to get me started, and everything works great with the join table "people_friends". I add friends by doing somebody.friends << somebodyelse. However, with my app, there is an approval process so my join table has columns person_id, friend_id, and approved. How do I control the "approved field"? When I add a friend, I want to set approved to zero, when they a...