Guest User

Untitled

a guest
Jul 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Processing StoreController#add_to_cart (for 127.0.0.1 at 2009-11-15 06:39:44) [POST]
  2. Session ID: 6f1c3086794c4e2a819f963d81d3a3a3
  3. Parameters: {"authenticity_token"=>"d536988ead7480fdcd980ae2eafcc444bab066ec", "id"=>"4"}
  4. Product Columns (0.9ms) SHOW FIELDS FROM `products`
  5. Product Load (0.4ms) SELECT * FROM `products` WHERE (`products`.`id` = 4)
  6.  
  7.  
  8. NoMethodError (You have a nil object when you didn't expect it!
  9. You might have expected an instance of Array.
  10. The error occurred while evaluating nil.<<):
  11. /app/models/cart.rb:10:in `add_product'
  12. /app/controllers/store_controller.rb:9:in `add_to_cart'
Add Comment
Please, Sign In to add comment