Wednesday, 7 August 2013

Temporary devise session variable

Temporary devise session variable

How do I create a variable that is only valid while the user is logged in
Devise? For example: I need to have variable named "current_location" that
may not be valid next time the user logs in as the person may travel
around a lot. I don't want to save it in the database, because other users
may be logged with the same account. Thanks in advance!

No comments:

Post a Comment