-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I bought your book and I'd like to play a bit with this application unfortunately I receive:
pizzaria/app/views/carts/_cart.html.erb where line #6 raised:
undefined method `[]' for false:FalseClass
Extracted source (around line #6):
Cart
-
<%= for_each current_cart.items do |item| %>
-
<%= image_tag(item.product.image.url(:mini)) %>
<%= item.quantity %>
Trace of template inclusion: app/views/layouts/application.html.erb
Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:7:incurrent_cart' app/views/carts/_cart.html.erb:6:in_app_views_carts__cart_html_erb___1739811058910117597_70170754005660'
app/views/layouts/application.html.erb:33:in_app_views_layouts_application_html_erb___891968134669836716_70170754710560' app/controllers/products_controller.rb:9:inindex'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels