Project

General

Profile

requete

Added by Adnen Mass about 11 years ago

Hi all,
I want to view all users of the current project with their role(manager or developer ....)
I tried to code it and I had a result but when I compare it with existant users and roles, I have not found the same.

this my code:

<TR>
<TD><%= @pr_id=member.project_id ></TD>
<TD><
@id=member.user_id > < @resp=User.find(:all, :conditions => { :id => ingo denner})%> <% @resp.each do |resp|%> <%= @nom= resp.firstname.to_s + " " + resp.lastname.to_s%> <%end ></TD>
<TD><
@rol_ids = MemberRole.find(:all, :select => :role_id , :conditions => {:member_id => ingo denner}) >
<
@rol_ids.each do |rol_id|%> <% @vv=Role.find(:all, :conditions => {:id => rol_id.role_id}) > < @vv.each do |vv| > <= @out=vv.name.to_s + " " > < end > < end > </TD>
<TD></TD> <TD></TD>
<
end %>
</TR>

thanks for help :)