Forum: Ruby on Rails How to handle InvalidAuthenticityToken

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
sprite (Guest)
on 2009-04-14 02:54
(Received via mailing list)
Scenario:

1. Log in a user.
2. Go to a page with a form.
3. Open a new tab and log out the user.
4. Go back to previous tab and submit form.
5. It throws InvalidAuthenticityToken before getting to my login code.
I need to redirect the user to a log in screen. What's the best way to
capture this and handle this?
sprite (Guest)
on 2009-04-14 03:15
(Received via mailing list)
If anyone else is running into this issue here is how I ended up
handling it

http://gist.github.com/94801
This topic is locked and can not be replied to.