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.4.5 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.4.4 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.4.3 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.4.2 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.4.1 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.4.0 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.9 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.8 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.7 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.6 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.5 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.4 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.3 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.2 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.1 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.3.0 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.2.1 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.2.0 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.1.5 lib/jets/generator/templates/erb/scaffold/index.html.erb
jets-1.1.4 lib/jets/generator/templates/erb/scaffold/index.html.erb