Problem in Itr D4 Hide from Cart
|
|
Iteration D3 went fine, but upon making changes to hide the cart when empty I ran into an error that posts in the log. Processing StoreController#add_to_cart (for 127.0.0.1 at 2008-08-13 12:28:16) [POST] Session ID: 463af3a2fe1e675f4c854eed5b92c1d1 Parameters: {“commit”=>”Add to Cart”, “authenticity_token”=>”de083c44dd5d4f7974dc8b4e6f2d2ec4d21c95e3”, “action”=>”add_to_cart”, “id”=>”3”, “controller”=>”store”} [4;36;1mProduct Columns (0.000000)[0m [0;1mSHOW FIELDS FROM `products`[0m [4;35;1mProduct Load (0.016000)[0m [0mSELECT * FROM `products` WHERE (`products`.`id` = 3) [0m NoMethodError (You have a nil object when you didn’t expect it! Maybe I’ve looked at this too long, because I’ve gone over it with a fine tooth comb to no avail. Here’s the code from my cart method.
Suggestions appreciated. Thanks |
|
|
After some changes I’m now getting this. Processing StoreController#add_to_cart (for 127.0.0.1 at 2008-08-13 13:32:33) [POST]
Session ID: 463af3a2fe1e675f4c854eed5b92c1d1
Parameters: {“commit”=>”Add to Cart”, “authenticity_token”=>”de083c44dd5d4f7974dc8b4e6f2d2ec4d21c95e3”, “action”=>”add_to_cart”, “id”=>”3”, “controller”=>”store”} Processing StoreController#index (for 127.0.0.1 at 2008-08-13 13:32:33) [GET]
Session ID: 463af3a2fe1e675f4c854eed5b92c1d1
Parameters: {“action”=>”index”, “controller”=>”store”}
[4;36;1mProduct Load (0.000000)[0m [0;1mSELECT * FROM `products` ORDER BY title[0m It seems to think everything worked fine, but the sidebar is empty (sigh). |
2 posts, 1 voice
