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?
使用devise登录后,您可以从current_user对象获取电子邮件
current_user.email
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.