我在我的rails应用程序中使用clearance (https://github.com/thoughtbot/clearance/wiki)进行身份验证。但我正在尝试弄清楚如何在登录后在视图中获取用户的ID。
有什么想法吗?
发布于 2010-03-18 23:42:06
基于this,看起来像
current_user.id
应该能行得通。
https://stackoverflow.com/questions/2470698
相似问题