Reputation: 7121
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
Reputation: 11876
You can get email from current_user object when you already signed in using devise
current_user.email
Upvotes: 7