I have login authentication set for the submit action of a form. I want
the form to be visible to unauthenticated users but when they fill in
the form and submit it, I want it to redirect to the login page and then
onto the original form submission action after the user is
authenticated. This part is easy.
The hard part is, how do I pass the parameters collected from the
original form through the login form and then on to the action of the
I was messing around with the actual login_system.rb code without much
success. Perhaps there is a better way?
This is what I was trying:
redirect_to :controller => “/account”, :action => “login”
I changed this to:
render_component :controller => “account”, :action => “login”, :params
This was not quite working. Any suggestions?