I have a simple application using ruby on rails to gem rails admin and devise to authenticate
I have a model called task where every task belongs to a user, so I would like to get the user who is logged in at the moment and assign it automatically at the time of creating a new task, because at the moment I am having to select at the time to create any task of the id of the users that exist registered in devise
As a beginner, I tried to read the documentation of both rails admin and devise and can not find anything very clear that can help me.