Sha256: 976dfd069c31d3191ddfb3a7b4efc1ad7aff509a389a2af11a68bbc48ac7b3cc

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

<h1><%= plural_table_name %></h1>

<table class="table">
  <thead>
    <tr>
  <% attributes.each do |attribute| -%>
      <th><%= attribute.human_name %></th>
  <% end -%>
      <th class="index-actions"></th>
    </tr>
  </thead>

  <tbody>
    <%%= content_tag_for(:tr, @<%= plural_table_name %>) do |<%= singular_table_name %>| %>
  <% attributes.each do |attribute| -%>
      <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
  <% end -%>
      <td>
        <td><%%= render 'shared/admin_actions', obj: category %></td>
      </td>
    <%% end %>
  </tbody>
</table>

<br />

<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, class: 'btn btn-default' %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trireme-0.0.1 lib/trireme/templates/lib/templates/erb/scaffold/index.html.erb