Todd Benson
11/7/2007 6:30:00 PM
On Nov 7, 2007 12:22 PM, Remco Swoany <remco.zwaan@gmail.com> wrote:
> Jacob Basham wrote:
> > Did you setup the AR models?
> >
> > User
> > has_many :education
> >
> > Education
> > belongs_to :user
>
> Hi Jacob,
>
> My models are..
>
> User
> has_and_belongs_to_many :educations
>
> Education
> has_and_belongs_to_many :users
>
>
> Because a user can have many educations and eductions can have many
> users.
Are you trying to move away from the DB relational model (i.e. you
plan to alter the DB), or just trying to get Ruby to work with it?
By the sound of it, you have something in the DB that looks like
(forgive the crude notation)...
Users <-- Expertise --> Educations
3 tables?
Todd