I have an action which saves the originating resource from which it
was called, and returns to it later. This is done by setting:
session[:return_to] = request.referer
Which works great for GET resources. The problem is that POST
variables aren’t kept in request.referer, so this method fails when
the originating resource is a a POST.
What’s a good way do the above for POST resources?