Sha256: be39051d5639bd8286446fe6a27c3a005f993e8925a622348e50c55907d4f0b2

Contents?: true

Size: 707 Bytes

Versions: 6

Compression:

Stored size: 707 Bytes

Contents

h1 Listing <%= plural_table_name %>

table
  thead
    tr
<% attributes.each do |attribute| -%>
      th <%= attribute.human_name %>
<% end -%>
      th
      th
      th

  tbody
    - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
      tr
<% attributes.each do |attribute| -%>
        td = <%= singular_table_name %>.<%= attribute.name %>
<% end -%>
        td = link_to 'Show', <%= singular_table_name %>
        td = link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
        td = link_to 'Destroy', <%= singular_table_name %>, data: { confirm: 'Are you sure?' }, method: :delete

br

= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slim-rails-3.3.0 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-3.2.0 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-3.1.3 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-3.1.2 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-3.1.1 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-3.1.0 lib/generators/slim/scaffold/templates/index.html.slim