Rails Devise: get object of the currently logged in user?
Devise creates convenience methods on the fly that represent your currently logged user. However you should note that the generated method name includes the class name of your user model. e.g. if your Devise model is called ‘User‘ then the currently logged in user can be accessed with ‘current_user‘, and if your Devise class is … Read more