11 Nov 2013, 20:04
Generic-user-small

Graeme Barnes (1 post)

Hi there,

In the second exercise for chapter 11 we are supposed to created a method in the controller that will decrease the quantity of line items in the cart via a button. Every time i run the code I get undefined local variable or method “current_cart”. The way I understood it was that the controller could access current_cart via CurrentCart concern, included in the Line_Items-Controller. Can someone elaborate on current_cart and how I can access it through my line_items_controller.

Thanls

  You must be logged in to comment