MR Damien wrote:> Hi all,
>
> I am using ajax for some request but when the user session expire, I get
> a ActionController::InvalidAuthenticityToke error.
>
> Do you know how I could trap this error and redirect to the login panel
> ?
I tried to put a begin ... rescue ... end over the code, but it doesn''t
work.
Is someone have an idea about this problem. I will have to disable
forgery if there is no solution ...
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---