small medium large xlarge

Generic-user-small
30 Dec 2010, 12:28
xideveloper (2 posts)

In chapter 8, section 8.2, I followed the book to create the ‘Cart’ class, and implement ‘add_to_cart’ method in my ‘store_controller’, after this, we I refresh the browser, I got the error “undefined local variable or method `add_to_cart’ “, but I do have the method ‘add_to_cart’ in my ‘store_controller’, why I got this error??? What is the possible cause???

You must be logged in to comment