The Dashboard and Portlets |
def get_orch_users begin users = User.find(:all , :select => "login") rescue Exception => e error "Could not fetch users in Orchestrator: #{e.inspect}" return [] end return users end
<h1>Displaying Users in Orchestrator</h1> <%users = @portlet.get_orch_users%> <ul> <%users.each do |u|%> <li><%= u.login %></li> <%end%> </ul>