This would not work, because `User` is a class, whereas you are looking for an object. What you want is `current_user`. The relevant documentation is [here](https://github.com/plataformatec/devise#controller-filters-and-helpers).

Also, it's a better idea to check against email than full name.

Lastly, if you really want to use `User.name`, then `"#{User.name}"` doesn't make sense. That takes a string and interpolates it inside another string. Why not just `User.name == "whatever"`?