Sha256: 9bd3af8a0d0682f32514d04aa53f7c613ec3b2f833998c0b1a0d7b7a7e28f93f

Contents?: true

Size: 841 Bytes

Versions: 1

Compression:

Stored size: 841 Bytes

Contents

<h1><%= controller_class_name %> controller, index action</h1>

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

<table>
  <tr>
<% for property in properties.reject{|p| p.lazy?} -%>
    <th><%= DataMapper::Inflection.humanize(property.field) %></th>
<% end -%>
  </tr>

<%% for <%= singular_model %> in @<%= plural_model %> %>
  <tr>
<% for property in properties.reject{|p| p.lazy?} -%>
    <td><%%=h <%= singular_model %>.<%= property.getter %> %></td>
<% end -%>
    <td><%%= link_to 'Show', url(:<%= singular_model %>, <%= singular_model %>) %></td>
    <td><%%= link_to 'Edit', url(:edit_<%= singular_model %>,  <%= singular_model %>) %></td>
    <td><%%= delete_button :<%= singular_model %>, <%= singular_model %> %></td>
  </tr>
<%% end %>
</table>

<%%= link_to 'New', url(:new_<%= singular_model %>) %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thorero-gen-0.9.4 templates/component/resource_controller/datamapper/app/views/%file_name%/index.html.erb