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
page.
def authorize
...
session[:original_uri] = request.request_uri
logger.info("ApplicationController: request_uri
#{request.request_uri}")
...
end
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?
Regards,
Spacen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---