Sha256: ccdeb345d9ddbc82d2c4200b5ea82afa65a17f31ffd4d1376bcf39406515dbcf
Contents?: true
Size: 1.27 KB
Versions: 8
Compression:
Stored size: 1.27 KB
Contents
<h1>Listing <%= plural_table_name %></h1> <table> <tr> <% for attribute in attributes -%> <th><%= attribute.human_name %></th> <% end -%> <th></th> <th></th> <th></th> </tr> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <tr> <% for attribute in attributes -%> <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td> <% end -%> <% if defined? ::Ixtlan::Guard -%> <%% if allowed?(:<%= table_name %>, :show) %> <% end -%> <td><%%= link_to 'Show', <%= singular_table_name %> %></td> <% if defined? ::Ixtlan::Guard -%> <%% end %> <%% if allowed?(:<%= table_name %>, :update) %> <% end -%> <td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td> <% if defined? ::Ixtlan::Guard -%> <%% end %> <%% if allowed?(:<%= table_name %>, :destroy) %> <% end -%> <td><%%= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete %></td> <% if defined? ::Ixtlan::Guard -%> <%% end %> <% end -%> </tr> <%% end %> </table> <br /> <% 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 -%>
Version data entries
8 entries across 8 versions & 2 rubygems