Sha256: 9e601cf0f2b51ca95f2ea4dbbd1a0d2054d1d1cc0d618d6ca99fc856163de360

Contents?: true

Size: 655 Bytes

Versions: 4

Compression:

Stored size: 655 Bytes

Contents

h1 Listing <%= plural_table_name %>

table
  tr
<% for attribute in attributes -%>
    th <%= attribute.human_name %>
<% end -%>
    th
    th
    th

  - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
    tr
<% for attribute in attributes -%>
      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 %>, :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-0.2.1 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-0.2.0 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-0.1.2 lib/generators/slim/scaffold/templates/index.html.slim
slim-rails-0.1.1 lib/generators/slim/scaffold/templates/index.html.slim