In my case, I will send a 302, and set the response text to the url
for login. Then, in javascript if the response is a 302 I can just
generically redirect.
For example, in the controller:
render :text => login_url, :status => 302
In the view, I add a failure directive into the link_to_remove l
On Tuesday 21 February 2006 14:36, Grzesiek Slusarek wrote:
> Hello All. I'm making ajax call to some url but to connect and
> get data from that url first I check session for user which using
> AJAX. If session is expired I redirect Ajax call to other url.
> That url return form to login. There is
Hello All. I'm making ajax call to some url but to connect and
get data from that url first I check session for user which using
AJAX. If session is expired I redirect Ajax call to other url.
That url return form to login. There is one problem - I check in
function onResponse(OriginalRequest) O