bad --> @line_item = @cart.add_product(:product.id)
good --> @line_item = @cart.add_product(product.id)
First case not passing id, instead passing (I think) an object reference! gotta love those one character typos!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment