I encountered the same problem, and was able to overcome this by changing a line in the line_items_controller file to read: “@line_item = @cart.line_items.build(product_id: product)”, rather than “@line_item = @cart.line_items.build(product: product)”