The file: app/views/line_items/_line_item.html.erb was created in iteration D2, when we ran the generator: bin/rails generate scaffold LineItem product:references cart:belongs_to
And it’s contents at the time were:
Product:
<%= line_item.product_id %>
Cart:
<%= line_item.cart_id %>
Page 148 shows the contents as:
<%= line_item.quantity %> × <%= line_item.product.title %> <%= number_to_currency(line_item.total_price) %>I found this to be confusing. I suggest that it be noted that the existing code needs to be replaced with the new code.