If you are not doing something strange with your Redmine instance, you should always have one User.current. Therefore, you can also use User.current.name.
Since this did not work, as you said, could you tell us in detail what exactly did not work?
source
share