I have a typical model setup:
Store has_many Items
Orders has_many Items :through OrderItems
OrderItems
However, on the OrderItems I have a field called “quantity” to tell me how many of each item is on the order. I can’t figure out how to properly retrieve this information.
ex. Order.find(1).order_items # has the list of items, but no "quantity" field
Any thoughts?
I had the same situation.I had used another association for this.Like
It will use the same order_id to map and then