Sha256: b013edd5e84621bc7ce6007f2466c524195888fa3eae55e00ccba4b5a5b43495

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 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

5 entries across 5 versions & 1 rubygems

Version Path
haml-rails-0.3.4 lib/generators/haml/scaffold/templates/index.html.haml
haml-rails-0.3.3 lib/generators/haml/scaffold/templates/index.html.haml
haml-rails-0.3.2 lib/generators/haml/scaffold/templates/index.html.haml
haml-rails-0.3.1 lib/generators/haml/scaffold/templates/index.html.haml
haml-rails-0.3 lib/generators/haml/scaffold/templates/index.html.haml