In devise how would I, I am not sure how to phrase it, return a user.
I am able to user_signed_in? but what about user.
I want to check in show if @user is the same one as the user that is currently signed in.
In devise how would I, I am not sure how to phrase it, return
Share
Devise has methods like
current_userwhich returns the “user” that is logged in.Also, depending on your “User” model the helper methods will be adjust accordingly. So if you have an
Adminclass that is your devise model, you can use something likecurrent_admin, and so on.