lib/generators/slim/scaffold/templates/index.html.slim in slim-rails-2.1.2 vs lib/generators/slim/scaffold/templates/index.html.slim in slim-rails-2.1.3
- old
+ new
@@ -1,23 +1,25 @@
h1 Listing <%= plural_table_name %>
table
- tr
+ thead
+ tr
<% attributes.each do |attribute| -%>
- th <%= attribute.human_name %>
+ th <%= attribute.human_name %>
<% end -%>
- th
- th
- th
+ th
+ th
+ th
- - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
- tr
+ tbody
+ - @<%= plural_table_name %>.each do |<%= singular_table_name %>|
+ tr
<% attributes.each do |attribute| -%>
- td = <%= singular_table_name %>.<%= attribute.name %>
+ 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
+ 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