How to do a Post/Redirect/Get using Sinatra?
Posted
by John Topley
on Stack Overflow
See other posts from Stack Overflow
or by John Topley
Published on 2010-04-28T08:53:10Z
Indexed on
2010/04/28
9:33 UTC
Read the original article
Hit count: 182
What's Sinatra's equivalent of Rails' redirect_to
method? I need to follow a Post/Redirect/Get flow for a form submission whilst preserving the instance variables that are passed to my view.
Does the redirect
method preserve them? (I'm at work at the moment and don't have access to Sinatra to try for myself.)
© Stack Overflow or respective owner