Sha256: 012e3c9326e9d8bda2a60680136545d50799a5573f8939f82a7daa1d6640bbe1

Contents?: true

Size: 1 KB

Versions: 168

Compression:

Stored size: 1 KB

Contents

<h1><%= plural_table_name.titleize %></h1>

<table>
  <thead>
    <tr>
<% attributes.reject(&:password_digest?).each do |attribute| -%>
      <th><%= attribute.human_name %></th>
<% end -%>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
      <tr class="jets-element-to-delete">
<% attributes.reject(&:password_digest?).each do |attribute| -%>
        <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
<% end -%>
        <td><%%= link_to 'Show', "/<%= plural_table_name %>/#{<%= singular_table_name %>.id}" %></td>
        <td><%%= link_to 'Edit', "/<%= plural_table_name %>/#{<%= singular_table_name %>.id}/edit" %></td>
        <td><%%= link_to 'Destroy', "/<%= plural_table_name %>/#{<%= singular_table_name %>.id}", method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <%% end %>
  </tbody>
</table>

<br>

<%%= link_to 'New <%= singular_table_name.titleize %>', "/<%= plural_table_name %>/new" %>

Version data entries

168 entries across 168 versions & 3 rubygems

Version Path
jets-1.0.1 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.0.0 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.10.4 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.10.3 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.10.2 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.10.1 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.10.0 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.9.2 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.9.1 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.9.0 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.18 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.17 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.15 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.14 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.13 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.12 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.11 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.10 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.9 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-0.8.8 lib/jets/generator/templates/erb/scaffold/index.html.erb