Listing Permissions

<% for column in @content_columns %> <% end %> <% for permission in @permissions %> <% for column in @content_columns %> <% end %> <% end %>
<%= column.human_name %>Actions
<%=h permission.send(column.name) %>
    <%= link_if_authorized 'Show', {:action => 'show', :id => permission}, :wrap_in => "li" %> <%= link_if_authorized 'Edit', {:action => 'edit', :id => permission}, :wrap_in => "li" %> <% if authorized?(:action => 'destroy') %><%= button_to 'Destroy', {:action => 'destroy', :id => permission} %><% end %>
<%= # This might be useful for Administrators, although it shouldnt really be # used. link_if_authorized 'New permission', :action => 'new' %>