I have a login form, in which I use a “form_remote_tag”.
I’m redirecting users to this form when they fail authentication as
and using the “jumpto” method of capturing they
original URL they requested via request.parameters, and redirecting to
URL after they authenticate.
Problem is, if I try to do a “redirect_to”, this won’t work, as I’m
the AJAX request.
I’m assuming my only alternatives are:
- Not use AJAX
- Send un-authenicated users to a different non-ajaxed login form.
- Parse the request.parameters, then pass the URL as a variable into a
template which then does a window.location redirect.
Any other ideas ?