Sha256: ebb65687cb5ace6dbaa659ad3cd94f096a5e2c7c19d4996110c25504c70c8f2b
Contents?: true
Size: 1020 Bytes
Versions: 1
Compression:
Stored size: 1020 Bytes
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 allowed?(:<%= table_name %>, :show) %> <td><%%= link_to 'Show', <%= singular_table_name %> %></td> <%% end %> <%% if allowed?(:<%= table_name %>, :update) %> <td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td> <%% end %> <%% if allowed?(:<%= table_name %>, :destroy) %> <td><%%= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete %></td> <%% end %> </tr> <%% end %> </table> <br /> <%% if allowed?(:<%= table_name %>, :create) %> <%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %> <%% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ixtlan-guard-0.1.0 | lib/generators/ixtlan/templates/index.html.erb |