0





107
1

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 ?

Question author Dhruvin-shah | Source

0


1
<%= User.current.login %>

Using Above Code We can get Email Address of Logged In Person in Redmine.

Answer author Dhruvin-shah

Ask about this question here!