search for: group_invite

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

2010 Aug 19
1
has_many :through question
...quot; option in "has_many" but not having success. I have created the necessary migrations of the association tables and run rake db:migrate I have the following model: class Group < ActiveRecord::Base has_many :users, :through => :group_user has_many :invites, :through => :group_invite, :class_name => "User" belongs_to :owner, :class_name => "User" end class GroupUser < ActiveRecord::Base belongs_to :group belongs_to :user end Loading development environment (Rails 2.3.8) >> g = Group.find(1)...