Ruby on Rails
Thursday, March 1, 2012
I actually did mention quantity in my model: "The Orders_Products table has the two id columns (order_id, product_id) and a quantity column".
On Thursday, March 1, 2012 12:51:47 PM UTC-5, Max wrote:
i'm very new to this too so this may be wrong (shameless disclaimer)
but....
you mentioned quantity in your question but there's no reference to
quantity in your description of the models. I would think that you'd
also need a quantity field in the Orders_Products model/table to
support that and from my reading you would need to use
has_many :through.
I'm personally battling with learning this now also so i could be
wrong and don't have enough knowledge to give you the details on it
all. good luck! :)
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/f4knCYF25z8J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment