<% if User %>

Users

<% for column in User.content_columns %> <% if column.human_name != "Password"%> <% end %> <% end %> <% if @users %> <% for user in @users %> <% for column in User.content_columns %> <% if column.human_name != "Password"%> <% if column.human_name == "Login" %> <% else %> <% end %> <% end %> <% end %> <% end %> <% end %> <% end %>
<%= column.human_name %>
<%= link_to user.send(column.name), :controller => "admin", :action => 'show', :id => user %><%=h user.send(column.name) %><%= link_to 'Edit', :controller => "admin", :action => 'edit', :id => user %> <%= link_to_image "remove.gif", { :controller => "admin", :action => 'remove', :id => user }, :post => true, :confirm => 'Are you sure you want to remove this user?' %>