<%= @role.name %>

Description <%= @role.description %>
Created At <%= @role.created_at %>
Updated At <%= @role.updated_at %>
Start Path <%= @role.start_path %>

Hierarchy

This Role and the Roles on which it is based, and the Permissions for each:


Permissions for <%= @role.name %>

<% if @rps.size > 0 -%> <% for rp in @rps do %> <% end -%>
<%= image_tag("/goldberg/images/permission.png") %> <%= link_to rp.name, :controller => 'goldberg/permissions', :action => 'show', :id => rp.permission_id %> <%= link_to image_tag("/goldberg/images/delete.png") + ' Remove', { :controller => 'goldberg/roles_permissions', :action => 'destroy', :id => rp.id }, :confirm => 'Remove this Permission from this Role?', :method => 'post' %>
<% else -%>

(None)

<% end -%>

<%= link_to image_tag("/goldberg/images/add.png") + ' Add Permission', { :controller => 'goldberg/roles_permissions', :action => 'new_permission_for_role', :id => @role.id }%> for this Role


<%= @role.name %> Users

<% if @users and @users.length > 0 -%> <% else -%>

(No Users for this Role)

<% end -%>

<%= link_to 'Edit', :action => 'edit', :id => @role %> | <%= link_to 'Delete', {:action => 'destroy', :id => @role}, :confirm => 'Are you sure?', :method => 'post' %>

<%= link_to 'Back', :action => 'list' %> to Roles list