I whonder why a product should have many orders? It belongs to
orders..

> > class Customer < ActiveRecord::Base
> >    has_many :orders
> > end
> > class Order < ActiveRecord::Base
> >    belongs_to :customer
> >    has_many :products
> > end
> > class Product < ActiveRecord::Base
> >    belongs_to :orders
> > end

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to