Hello everyone!,
I want to get the current user without need of providing id or username or post id using Ruby not by using JS.Any help would be appreciated.
It would be helpful to know the context. Can you post a code snippet? On the server the current_user is set automatically in controller actions – no need to manually look up the user. Here is an example: