Listing users

<% for column in User.content_columns %> <% if User.display?(column.name) %> <% end %> <% end %> <% for user in @users %> <% for column in User.content_columns %> <% if User.display?(column.name) %> <% if user.readable?(column.name) %> <% else %> <% end %> <% end %> <% end %> <% end %>
<%= column.human_name %>
<%= user.send(column.name) %><%= link_to 'Show', :action => 'show', :id => user %> <%= link_to 'Edit', :action => 'edit', :id => user %> <%= link_to 'Destroy', {:action => 'destroy', :id => user}, :confirm => 'Are you sure?' %>
<%= link_to 'Previous page', { :page => @user_pages.current.previous } if @user_pages.current.previous %> <%= link_to 'Next page', { :page => @user_pages.current.next } if @user_pages.current.next %>
<%= link_to 'New user', :action => 'new' %>