<% for attribute in attributes -%>
<%%= <%= singular_table_name %>.<%= attribute.name %> %> |
<% end -%>
<% if defined? ::Ixtlan::Guard -%>
<%% if allowed?(:<%= table_name %>, :show) %>
<% end -%>
<%%= link_to 'Show', <%= singular_table_name %> %> |
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<%% if allowed?(:<%= table_name %>, :update) %>
<% end -%>
<%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %> |
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<%% if allowed?(:<%= table_name %>, :destroy) %>
<% end -%>
<%%= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete %> |
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<% end -%>
<%% end %>