I want to get current user's name. As documentation describes, I should user User.name method. Tried to use it as in the example - didn't work. Tried this:
val = User.current.name
And this:
user = User.find(User.current.id)
val = user.name
What am I doing wrong?