Group: comp.lang.ruby
From: "Phlip"
Date: Sunday, February 10, 2008 12:11 PM
Subject: Re: Rails: Problem with has_and_belongs_to_many

Firstly, get on the Goole Ruby-on-Rails Talk forum. I know it's a pain in
the nuts compared to USENET, but you need the best answers for these
questions.

> ag.core_users << someuser
> # someuser.core_groups << ag

> Shouldn't it work with the line being commented out (one direction)?

The Joy of ActiveRecord is you only define relations once, then use them
everywhere. However, your code sample does not contain the definitions -
only the usage. Please post your class declarations to the Rails group, for
the best answer!

--
Phlip