You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dan Milne edited this page Aug 28, 2022
·
6 revisions
If you are not using devise/warden - and using clearance/DIY, you won't have access to a current_user helper. You'll need to access the authenticated user through the session (or the env variable if you're using Clearance >= 0.13.0).
Clearance Example
The follow example uses the env variable to get the authenticated user.