Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Using Devise to show Online users

I would like to show my online users in a Who's online module.

I'm using Devise to manage my users.

I searched everywhere, but I don't have any idea to manage it.

Do you have a clue?

Thanks in advance

like image 922
Fabien Avatar asked Jul 06 '10 09:07

Fabien


1 Answers

when someone has logged in, you can push him into an array, if someone has logged out, just remove him from the array. So you can loop the array items to show the online users. Hope it is useful to you. Sorry for my poor english.

like image 125
VvDPzZ Avatar answered Nov 15 '22 14:11

VvDPzZ