G
Grayson Piercee
Hello,
I really like the ability to do sums right in the object model, for
example
@items.sumunit_price), etc! works great!
However I wonder how you step down through an association to do a sum
current_user.carts.first.cart_items.items.sumunit_price)
Finding the users first cart works fine but the collection to collection
between cart_items to items doesn't.
TIA
GP
I really like the ability to do sums right in the object model, for
example
@items.sumunit_price), etc! works great!
However I wonder how you step down through an association to do a sum
current_user.carts.first.cart_items.items.sumunit_price)
Finding the users first cart works fine but the collection to collection
between cart_items to items doesn't.
TIA
GP