Case: How to find out who is logged in to website right now

Problem We have an app built using ruby on rails with default Gemfile(devise, pg, etc). And one page, where we have to print all logged in users.