Just start developing using the application to authenticate my application, however, faced with the problem of accessing current_user from the model. I have no problem accessing it from the controller.
For my scenario, I need to get the current user ID in order to keep track of who is editing the blog post, and I save the user ID with the before_save filter.
Appreciate your help!
thank
source
share