Listing <%= plural_table_name %>

<% for attribute in attributes -%> <% end -%> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <% for attribute in attributes -%> <% end -%> <% if defined? ::Ixtlan::Guard -%> <%% if allowed?(:<%= table_name %>, :show) %> <% end -%> <% if defined? ::Ixtlan::Guard -%> <%% end %> <%% if allowed?(:<%= table_name %>, :update) %> <% end -%> <% if defined? ::Ixtlan::Guard -%> <%% end %> <%% if allowed?(:<%= table_name %>, :destroy) %> <% end -%> <% if defined? ::Ixtlan::Guard -%> <%% end %> <% end -%> <%% end %>
<%= attribute.human_name %>
<%%= <%= singular_table_name %>.<%= attribute.name %> %><%%= link_to 'Show', <%= singular_table_name %> %><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %><% if options[:optimistic] && options[:timestamps] -%> <%%= link_to 'Destroy', <%= singular_table_name %>_path(<%= singular_table_name %>) + "?<%= singular_table_name %>[updated_at]=#{<%= singular_table_name %>.updated_at.utc.strftime('%Y-%m-%d %H:%M:%S') + ("%06d" % <%= singular_table_name %>.updated_at.utc)}", :confirm => 'Are you sure?', :method => :delete %><% else -%><%%= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete %> <% end -%>

<% if defined? ::Ixtlan::Guard -%> <%% if allowed?(:<%= table_name %>, :create) %> <% end -%> <%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %> <% if defined? ::Ixtlan::Guard -%> <%% end %> <% end -%>