search for: hmabt

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

Did you mean: habt
2006 Jan 23
1
Help with hmabt relationships
hey, I want to have this table structure with users and groups A user can be in more than 1 group and a group has more than 1 user. class User < ActiveRecord::Base has_many_and_belongs_to :groups end class Group < ActiveRecord::Base has_many_and_belongs_to :users end I was wondering if i can do this for group in user.groups ...do stuff end -AND- for user in group.users ...do stuff end