small medium large xlarge

03 Aug 2008, 17:58
Max Norman (17 posts)

For some reason, I get this error when I try to add something to my cart, with no appliaction trace:

ActionController::InvalidAuthenticityToken in StoreController#add_to_cart

How can I fix this? Where is the problem?

03 Aug 2008, 19:25
Sam Ruby (633 posts)

This is described on the top of page 114; and depends on you having made the changes to application.rb as described on the top of page 108.

03 Aug 2008, 21:39
Max Norman (17 posts)

Edit: I started a new session and found a spelling error in store_controller.rb. Now it works.