Add some examples for getting current_user
Add some examples for getting current_user

Add some examples for getting current_user in ActionCable::Connection.

It is somehow common for Rails to use a session in order to keep current user user_id. The most common authentication approach is with Devise.

This PR suggest some more info on how to obtain current_user with Devise and how to obtain current_user in a more general situation when we have a session cookie.

Also in the text a "signed" cookie is mentioned but in the code above is used an "encrypted" cookie.
starknx/rails,joonyou/rails,kmcphillips/rails,MSP-Greg/rails,fabianoleittes/rails,bogdanvlviv/rails,betesh/rails,Erol/rails,tjschuck/rails,prathamesh-sonpatki/rails,esparta/rails,yawboakye/rails,vipulnsward/rails,iainbeeston/rails,MSP-Greg/rails,vipulnsward/rails,BlakeWilliams/rails,tjschuck/rails,notapatch/rails,eileencodes/rails,bogdanvlviv/rails,kmcphillips/rails,jeremy/rails,jeremy/rails,lcreid/rails,repinel/rails,vipulnsward/rails,gauravtiwari/rails,Envek/rails,esparta/rails,yawboakye/rails,EmmaB/rails-1,fabianoleittes/rails,esparta/rails,jeremy/rails,Stellenticket/rails,mechanicles/rails,jeremy/rails,eileencodes/rails,Vasfed/rails,yahonda/rails,Stellenticket/rails,BlakeWilliams/rails,iainbeeston/rails,repinel/rails,joonyou/rails,Erol/rails,eileencodes/rails,rails/rails,tgxworld/rails,MSP-Greg/rails,yalab/rails,BlakeWilliams/rails,rafaelfranca/omg-rails,tgxworld/rails,prathamesh-sonpatki/rails,tgxworld/rails,fabianoleittes/rails,gauravtiwari/rails,kmcphillips/rails,palkan/rails,repinel/rails,BlakeWilliams/rails,kmcphillips/rails,Edouard-chin/rails,lcreid/rails,yalab/rails,Stellenticket/rails,palkan/rails,prathamesh-sonpatki/rails,eileencodes/rails,notapatch/rails,notapatch/rails,rafaelfranca/omg-rails,bogdanvlviv/rails,yahonda/rails,georgeclaghorn/rails,yhirano55/rails,yhirano55/rails,tgxworld/rails,EmmaB/rails-1,georgeclaghorn/rails,yalab/rails,joonyou/rails,betesh/rails,Vasfed/rails,vipulnsward/rails,Vasfed/rails,palkan/rails,rails/rails,yhirano55/rails,yahonda/rails,bogdanvlviv/rails,Edouard-chin/rails,kddeisz/rails,Envek/rails,mechanicles/rails,Envek/rails,repinel/rails,Vasfed/rails,gauravtiwari/rails,lcreid/rails,prathamesh-sonpatki/rails,mechanicles/rails,palkan/rails,schuetzm/rails,Erol/rails,EmmaB/rails-1,yahonda/rails,schuetzm/rails,Edouard-chin/rails,georgeclaghorn/rails,mechanicles/rails,rails/rails,notapatch/rails,starknx/rails,betesh/rails,Stellenticket/rails,kddeisz/rails,yalab/rails,starknx/rails,esparta/rails,fabianoleittes/rails,schuetzm/rails,kddeisz/rails,lcreid/rails,joonyou/rails,Edouard-chin/rails,rafaelfranca/omg-rails,rails/rails,schuetzm/rails,yawboakye/rails,Erol/rails,tjschuck/rails,georgeclaghorn/rails,kddeisz/rails,tjschuck/rails,yawboakye/rails,iainbeeston/rails,iainbeeston/rails,betesh/rails,Envek/rails,yhirano55/rails,MSP-Greg/rails