Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be updated to Rails 3.1? #2

Open
olimart opened this issue Oct 5, 2011 · 2 comments
Open

Can this be updated to Rails 3.1? #2

olimart opened this issue Oct 5, 2011 · 2 comments
Assignees

Comments

@olimart
Copy link

olimart commented Oct 5, 2011

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:in current_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'

@ghost ghost assigned ccjr Oct 6, 2011
@ccjr
Copy link
Owner

ccjr commented Oct 6, 2011

I'll try to update the application to Rails 3.1 in the next few days. I'll post the code, and add a comment here when it's done.

@ccjr ccjr closed this as completed Oct 6, 2011
@ccjr ccjr reopened this Oct 6, 2011
@olimart
Copy link
Author

olimart commented Oct 18, 2011

Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants