Refreshing browser after form submit and redirect bug

Hi,

Let's say I have a form I submit restfully to the update action of a controller. On successful update, the application redirects to the index action.

Now in some of my forms if I hit the refresh button on my index page, the browser wants to resubmit the form! How is that possible? I can see in my log file that I got a 302.

Thanks in advance

Let's say I have a form I submit restfully to the update action of a controller. On successful update, the application redirects to the index action.

Now in some of my forms if I hit the refresh button on my index page, the browser wants to resubmit the form! How is that possible? I can see in my log file that I got a 302.

I finally got it fixed! I wasn't redirecting to the correct named_route, but to resources_url instead, so Rails thought that I wanted to still keep the POST data.