> I get the following: > > NoMethodError in Shoppingcart#my_shopping_cart > > Showing app/views/shoppingcart/my_shopping_cart.rhtml where line #33 > raised: > > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.shopping_cart_items > > The line in question is > > <% for shopping_cart_item in @shopping_cart.shopping_cart_items %> > > Any suggestions?
@shopping_cart is nil. You'll need to look at the my_shopping_cart action of the Shoppingcart controller to figure out why that's not being set correctly. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

