I’m reading the “Agile Web D. With Rails” book. So long,
everything has worked fine, but now I got this annoying error message
that I just can’t understand. The error appears for me around page
87, chapter 8.
NoMethodError in Store#display_cart
Showing app/views/store/display_cart.rhtml where line #28 raised:
undefined method `product’ for 2395.0:Float
Extracted source (around line #28):
27: for item in @items
28: product = item.product
I’m sure my source code is correct.