This file is indexed.

/usr/lib/ruby/vendor_ruby/generators/templates/resource_controller/datamapper/app/views/%file_name%/index.html.haml is in ruby-merb-haml 1.1.3-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%h1
  <%= class_name %> controller, index action
%p
  Edit this file in
  %tt
    app/views/<%= file_name %>/index.html.haml
%table
  %tr
<% for property in properties.reject{|p| p.lazy?} -%>
    %th
      <%= DataMapper::Inflection.humanize(property.field) %>
<% end -%>
  - for <%= singular_model %> in @<%= plural_model %>
    %tr
<% for property in properties.reject{|p| p.lazy?} -%>
      %td
        =h <%= singular_model %>.<%= property.getter %>
<% end -%>
      %td
        = link_to 'Show', resource(<%= singular_model %>)
      %td
        = link_to 'Edit', resource(<%= singular_model %>, :edit)

= link_to 'New', resource(:<%= plural_model %>, :new)