Sha256: 468ca6ce90cc59c3429b02674669bc5314f421dabd685348edbc73220bb2bdce
Contents?: true
Size: 961 Bytes
Versions: 4
Compression:
Stored size: 961 Bytes
Contents
<h1>Listing <%= plural_name %></h1> <table> <tr> <% for attribute in attributes -%> <th><%= attribute.column.human_name %></th> <% end -%> <% for parent_model in parent_models -%> <th><%= parent_model.name.titleize %></th> <% end -%> </tr> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <tr> <% for attribute in attributes -%> <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td> <% end -%> <% for parent_model in parent_models -%> <td><%%=h <%= singular_name %>.<%= parent_model.name.underscore %>_<%= field_for(parent_model) %> %></td> <% end -%> <td><%%= link_to 'Show', <%= singular_name %> %></td> <td><%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %></td> <td><%%= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %></td> </tr> <%% end %> </table> <br /> <%%= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path %>
Version data entries
4 entries across 2 versions & 1 rubygems