Alon Shmiel
Alon Shmiel

Reputation: 7121

find user email in the session of `devise`

I succeeded to find out the id of the user that signed in, by:

#{session['warden.user.user.key'][1][0]}

how can I get the email that the user signed in with it?

Upvotes: 1

Views: 503

Answers (1)

Sachin R
Sachin R

Reputation: 11876

You can get email from current_user object when you already signed in using devise

current_user.email

Upvotes: 7

Related Questions