Sha256: a8a44f1f43885f48d9dc420c9132da58caaca1b0e921120b406b636f297755cb

Contents?: true

Size: 673 Bytes

Versions: 4

Compression:

Stored size: 673 Bytes

Contents

h1 Listing <%= plural_table_name %>

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

  - @<%= 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

4 entries across 4 versions & 1 rubygems

Version Path
slim-rails-2.1.2 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-2.1.1 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-2.1.0 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-2.0.4 lib/generators/slim/scaffold/templates/index.html.slim