After introducting the CartItem object, the app blows up with : NoMethodError in StoreController#add_to_cart undefined method `product'' for #<Product:0x2498b0c> RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace vendor/rails/activerecord/lib/active_record/base.rb:1850:in `method_missing'' app/models/cart.rb:9:in `add_product'' app/models/cart.rb:9:in `add_product'' app/controllers/store_controller.rb:11:in `add_to_cart'' This happens even after clearning sessions using rake. When I use a different browser (Safari), it works. Looks like the session was getting cached by Firefox. Hope this helps someone. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 12, 2006, at 10:58 AM, Bala Paranj wrote:> This happens even after clearning sessions using rake. When I use a > different browser (Safari), it works. Looks like the session was > getting cached by Firefox. Hope this helps someone.The browser cannot cache the session data--it only holds a session identifier. If you stop your application, delete the session data, and restart your application, the data will be gone. Cheers Dave Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---