search for: h_a_b_t_m

Displaying 2 results from an estimated 2 matches for "h_a_b_t_m".

2006 Mar 19
1
some strange behavior for has_many with STI
...odd thing though, is if I comment out the belongs_to :user from the Activity model, then Activity starts throwing the same error as Event. Somehow it looks like the association from Comment to User is relying upon the parent object also having an association to user (even though Event does have a h_a_b_t_m :users, it''s still breaking), and even though the Comment is relying on the parent''s relationship, it''s still pulling in the proper user for each individual comment. This has had me stumped for the better part of the day, so hopefully someone might have some insight. If...
2006 Jan 09
6
has_and_belongs_to_many :self
Hi all I got the following class: class Member < ActiveRecord::Base has_and_belongs_to_many :buddies, :class_name => ''Member'', :join_table => ''members_have_buddies'', :foreign_key => ''member_id'', :association_foreign_key =>