On Thu, Jan 8, 2009 at 4:53 PM, Matt Aimonetti <[email protected]> wrote:
> I believe I had a form adding a comment on the page or something like that.
> Turned out that a new item was being added every time a user would refresh
> the page after clicking on the link. That's when I learned that a POST
> request should always be redirected to a GET request so the user could
> refresh the page without breaking anything. Merb and Rails already do that
> for you when we never ever have an update or destroy method render a
> template but back then I was not using a nice framework and I had to learn
> the hard way.

Great explanation Matt. I learned something too. "POST request should
always be redirected to a GET".

Thanks

Jim


-- 
Jim Freeze

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to