Sha256: b31df7a1231f9b3c07ab3e7e7d59f95cabdd250095705e7197475d1720f8cdd9
Contents?: true
Size: 826 Bytes
Versions: 2
Compression:
Stored size: 826 Bytes
Contents
<h1><%= 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><%= Extlib::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb_datamapper-0.9.4 | lib/generators/templates/views/index.html.erb |
merb_datamapper-0.9.5 | lib/generators/templates/views/index.html.erb |