Another question from a newbie… error messages are at the bottom of the post.
I’m running a linux installation of: ruby 1.8.6 Rails 2.2.2 Oracle 22.214.171.124.0
I was able to get through chapter 7 “Task B: Catalog Display” without any trouble, but I’ve hit a wall in chapter 8 “Task C: Cart Creation”. I have checked and rechecked my code, I even resorted to copying and pasting your code from media.pragprog.com without any luck.
I understand how the button “add to cart” is calling “add_to_cart” in the store controller… and find_cart is local, but add_product is in the Cart model… how does it know to find it there? And any idea what my problem might be?
Thanks for your help. Ron.
NoMethodError in StoreController#add_to_cart
undefined method `add_product’ for true:TrueClass