Sha256: d50a3158999dadd9b4c57d1b32cea74bf213b7c65ec5c1988949a1a134d8f5ea
Contents?: true
Size: 926 Bytes
Versions: 72
Compression:
Stored size: 926 Bytes
Contents
<%% title "<%= plural_name.titleize %>" %> <table> <tr> <%- for attribute in attributes -%> <th><%= attribute.column.human_name.titleize %></th> <%- end -%> </tr> <%% for <%= singular_name %> in @<%= plural_name %> %> <tr> <%- for attribute in 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
72 entries across 65 versions & 16 rubygems