LoginGenerator called on Form Submission

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
original form?

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:

In login_system.rb:


def access_denied
redirect_to :controller => “/account”, :action => “login”

I changed this to:

def access_denied
render_component :controller => “account”, :action => “login”, :params
=> @params

This was not quite working. Any suggestions?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs