This file is indexed.

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

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
%h1 <%= class_name %> controller, new action

%p 
  Edit this file in 
  %tt app/views/<%= file_name %>/new.html.haml

= error_messages_for @<%= singular_model %>

= form_for(@<%= singular_model %>, :action => resource(:<%= plural_model %>) ) do
<% for property in properties.select{|p| !p.key?} -%>
  %p
    %b
      <%= DataMapper::Inflection.humanize(property.field) %></b>
    = <%= field_from_type(property.type) %> :<%= property.getter %>

<% end -%>
  %p
    = submit "Create"

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