Re: [Rails] Re: Re: how I do different has_and_belongs_to_many for the same model?

2010-03-02 Thread Frank Kim
Hi Ar, Actually I realized this won't work because players can be on multiple teams and can be benched on one team but not the other. Therefore it can't be an attribute of the player, it has to be an attribute of the team. Looks like I'll have to go back to my old idea. -Frank On Tue, Mar 2, 2010

Re: [Rails] Re: Re: how I do different has_and_belongs_to_many for the same model?

2010-03-02 Thread Frank Kim
That makes a lot of sense Ar. Thanks! On Tue, Mar 2, 2010 at 6:22 AM, Aldric Giacomoni wrote: > Frank Kim wrote: >> Hi Ar, >> The attribute idea makes a lot of sense.  If I did it that way then I >> could use the same join table.  However I would have to use specify >> custom SQL for how to sele

[Rails] Re: Re: how I do different has_and_belongs_to_many for the same model?

2010-03-02 Thread Aldric Giacomoni
Frank Kim wrote: > Hi Ar, > The attribute idea makes a lot of sense. If I did it that way then I > could use the same join table. However I would have to use specify > custom SQL for how to select from it, right? Or is there a better > way? You could just have "benched" be a boolean field in th