Sha256: 791e8de3bbc1969b64848e724ed29e14834a8bfe26d831b37174052867c731f4

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

<h1>Listing <%= plural_name.titleize %></h1>

<table>
  <tr>
<% for attribute in attributes -%>
    <th><%= attribute.column.human_name %></th>
<% end -%>
    <th>Show</th>
    <th>Edit</th>
    <th>Delete</th>
  </tr>

<%% for <%= singular_name %> in @viewable_<%= plural_name %> %>
  <tr>
<% for attribute in attributes -%>
    <td><%%= safe_field_value(<%= singular_name %>, "<%= attribute.name %>") %></td>
<% end -%>
    <td><%%= safe_show_link(<%= singular_name %>) %></td>
    <td><%%= safe_edit_link(<%= singular_name %>) %></td>
    <td><%%= safe_delete_link(<%= singular_name %>) %></td>
  </tr>
<%% end %>
</table>
<%%= will_paginate @viewable_<%= plural_name %> %>
<br />

<%%= safe_create_link %>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
nileshtrivedi-lp_resource_builder-0.5.1 generators/scaffold_resource/templates/view_partial_index.html.erb
nileshtrivedi-lp_resource_builder-0.5.3 generators/scaffold_resource/templates/view_partial_index.html.erb
nileshtrivedi-safe_resource-0.5.3 generators/scaffold_resource/templates/view_partial_index.html.erb