Scott, I ran into the same issue as reported here: http://dev.rubyonrails.org/ticket/4386
When I asked Mark (he is the one who submitted the ticket) he replied with this (which makes a whole lot of sense to me) [quote] > Hi Linda, > No I never got the fix i was hoping for and as I used rails more and more I > realized that HABTM is a hack in and of itself. Typically, I have found that > using HABTM is a sign that I have an implicit join model which I have not > implemented. I have had much better luck using the "through" proxy association > so instead of saying > > User has_and_belongs_to_many :groups > > I now say > > User has_many :groups, through=> :memberships > > > Membership now becomes an explicit model instead of an implicit one and I can > now decorate the model with methods, which were missing or didn't belong in to > the user model (for example, storing a leader attribute inside the membership > model allows me to have a user become the leader of a group). > > > I think that the plan with the rails core team is to eventually remove the > HABTM relationship eventually. > > > Best of Luck, > Mark [/quote] -Linda On 8/11/06 2:54 PM, "Scott Laird" <[EMAIL PROTECTED]> wrote: > We haven't looked at it yet. It's not a high priority, because the > current code works well enough, and I don't really expect to see habtm > disappear in the near future, no matter how little the Rails core > likes it. > > Is there actually an advantage to converting existing code? > > > Scott > > On 8/11/06, Linda Derezinski <[EMAIL PROTECTED]> wrote: >> >> >> >> >> Scott, >> >> Are there any plans to update the models from has_and_belongs_to_many with >> has_many through? >> >> (perhaps we could assist in the effort) >> >> >> >> >> Linda Derezinski >> >> Innovative Solutions Inc. >> >> Essex, Maryland USA >> >> (443) 506 9106 >> >> >> _______________________________________________ >> Typo-list mailing list >> [email protected] >> http://rubyforge.org/mailman/listinfo/typo-list >> >> > _______________________________________________ > Typo-list mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/typo-list _______________________________________________ Typo-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/typo-list
