Sha256: 8a2c8563283b7783c1681aab361edb86f5928f845f401cbb33cf87790226bd60
Contents?: true
Size: 931 Bytes
Versions: 6
Compression:
Stored size: 931 Bytes
Contents
<%% title "<%= plural_name.titleize %>" %> <table> <tr> <%- for attribute in model_attributes -%> <th><%= attribute.human_name.titleize %></th> <%- end -%> </tr> <%% for <%= singular_name %> in @<%= plural_name %> %> <tr> <%- for attribute in model_attributes -%> <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td> <%- end -%> <%- if action? :show -%> <td><%%= link_to "Show", <%= singular_name %> %></td> <%- end -%> <%- if action? :edit -%> <td><%%= link_to "Edit", edit_<%= singular_name %>_path(<%= singular_name %>) %></td> <%- end -%> <%- if action? :destroy -%> <td><%%= link_to "Destroy", <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %></td> <%- end -%> </tr> <%% end %> </table> <%- if action? :new -%> <p><%%= link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path %></p> <%- end -%>
Version data entries
6 entries across 6 versions & 2 rubygems