small medium large xlarge

Generic-user-small
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?

Samr_small_pragsmall
03 Aug 2008, 19:25
Sam Ruby (584 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.

Generic-user-small
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.

Thanks!

  You must be logged in to comment