Forum: Ruby on Rails login pre-filter and post data problems

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E31fb78b78e94155e495201aa9f53d1c?d=identicon&s=25 Spacen Jasset (Guest)
on 2007-06-18 16:15
(Received via mailing list)
Hello Folks,

I am trying to use a standard sort of login controller, whereby you
put a pre-filter on the pages on which you want the user to have to
login. This is all well an good, except for one thing. Here is some
code to save the original request uri before redirecting to the logon

def authorize
 session[:original_uri] = request.request_uri"ApplicationController: request_uri

Unfortunatly one of my pages has a form on it with a single "action"
type button. Hence it's a post request, and since it's a post request
it appears that the post data is lost when login redirect happens.
i.e. the line above to save the original_uri isn't sufficient. How
might I remedy this?


This topic is locked and can not be replied to.