Sha256: 91f6f237b855870b17b860ef1293d931ac209db9e6b071e4e64f4d68a6356ed1

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

%h1 Listing <%= plural_name %>

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

- @<%= plural_name %>.each do |<%= singular_name %>|
  %tr
<% for attribute in attributes -%>
    %td= <%= singular_name %>.<%= attribute.name %>
<% end -%>
    %td= link_to 'Show', <%= singular_name %>
    %td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>)
    %td= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete

%br

= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails3-generators-0.3.3 lib/generators/haml/scaffold/templates/index.haml.erb
rails3-generators-0.3.2 lib/generators/haml/scaffold/templates/index.haml.erb
rails3-generators-0.3.1 lib/generators/haml/scaffold/templates/index.haml.erb
rails3-generators-0.3.0 lib/generators/haml/scaffold/templates/index.haml.erb
rails3-generators-0.2.0 lib/generators/haml/scaffold/templates/index.haml.erb
rails3-generators-0.1.0 lib/generators/haml/scaffold/templates/index.haml.erb