Sha256: 90cc29639286228aaf4d1e49db2497cb1fe4ad4df41c48362fc45eb4e53c19a2

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

%h1.heading
  = "<%= model_plural_name.humanize %>"
  
%p.actions
  = link_to 'New <%= model_singular_name.humanize %>', <%= new_path %>
  
%table
  %thead.header
    %tr
<% attributes.each do |attribute| -%>
      %th.<%= attribute.name %>= '<%= attribute.name.humanize %>'
<% end -%>
      %th.actions= 'Actions'
  %tbody.items.<%= plural_name %>
    - <%= collection_instance %>.each do |<%= singular_name %>|
      = render 'item', :<%= singular_name %> => <%= singular_name %>
      
<% if options[:pagination] -%>
= will_paginate(<%= collection_instance %>)
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry_scaffold-0.3.8 generators/dry_scaffold/templates/views/haml/index.html.haml