Forum: Ruby on Rails RE: Re: RE: habtm questions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E4c4a05719644c37f02dc5181de7c8c5?d=identicon&s=25 Buntin, Seth - KATE (Guest)
on 2006-03-09 21:02
(Received via mailing list)
I might be wrong but the bags_packages table is a many-to-many
relationship.  This relationship is expressed in Rails by
has_and_belongs_to_many.  You should probably take a look at what you
have set as primary keys.  Have them all set as primary.  You should
also look at how you are creating rows.  From what it looks like you are
sending 1, 1, 2 twice (or more).  Check your logs and see.

Seth
This topic is locked and can not be replied to.