search for: admincontact

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

2006 Feb 26
4
Creating objects with has_many :through relationship
...e user objects associated with the admin_contact. This all works great, I can grab the Users that are admin_contacts for the client by doing: users = client.contacts => Array of User objects defined in the admin_contacts table To add admin_contacts to a client: client.admin_contacts << AdminContact.new( :user => user_object ) I also thought this would work, but doesn''t: client.contacts << user_object Is this something that should work? Bob Silva http://www.railtie.net/