Hi
In the classic hasmanythrough example:
class Group < ActiveRecord::Base
has_many :memberships
has_many :users, :through => :memberships
end
class User < ActiveRecord::Base
has_many :memberships
has_many :groups, :through => :memberships
end
group1 = Group.new(.....)
group1.users = [User.find_by_id(2)]
group1.save!
it throws the exception: "users=" is one undefined method. So how can
i save the relationship in hasmanythrough?