small medium large xlarge

14 May 2009, 13:03
lucas M (1 post)

I just finished Chapter 8 and everything works fine. But there’s something that’s really bugging me :). Maybe I’m getting ahead of myself and this is solved a little latter in the book.

When you add an item to the cart, say localhost:3000/store/add_to_cart/7, the number of items #7 in the cart keeps incrementing if you simply refresh the page. Is there a good way to prevent this from happening?

24 Jun 2009, 19:52
David Spindle (9 posts)

I would think that a redirect to the index would fix that. I thought that’s what the example code did.

You must be logged in to comment