I created plug in for Redmine using Ruby On Rails. In index.html.erb [View] I want information related logged in person .
<h2>ResourcemanagController#index</h2>
<%= User.current.name %>
<%= User.current.id %>
<% if User.current.admin? %>
Admin
<% end %>
Using above code I am able to get User name , But I want email address of Current User. What to do ?
<%= User.current.login %>
使用上述代码,我们可以获得Redmine中已登录人员的电子邮件地址。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.