<%= @role.name -%>
<% unless @role.permissions.empty? -%>
<% @role.permissions.collect { |p| -%>- <%= p -%>
<% } -%>
<% else -%>
- No associated permissions.
<% end -%>
<% content_for :sidebar do -%>
<%= new_role_link -%>
<%= edit_role_link(@role) -%>
<%= link_to 'Destroy Role', role_path(@role.code), :confirm => 'Are you sure?', :method => :delete -%>
<% end -%>