> Thanks rubyguy. It's expected that the user isn't logged in. Let me
> summarize my problem. When the user clicks on a link_to (html) the
> redirection to the login page works fine. But when the user clicks on
> link_to_remote (js) the popup comes into play. Ideally i want the last
> case to redirect to the login page similar to html.
The way to do this is to have your authentication code return a json response
code like {status: 'not logged in'}. Then your client side JS parses that and
redirects if required.
I may be wrong but I don't know of an automatic way to do this. It would
require a little work.
SH
--
Starr Horne
My blog: http://starrhorne.com
Check out my Helpdesk RailsKit: http://railskits.com/helpdesk/
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---