Sha256: 49bbce8b91786b9ca131f98431b761d34a5d7ef9242950ce9338a50c0e35864f
Contents?: true
Size: 930 Bytes
Versions: 11
Compression:
Stored size: 930 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><%%= <%= 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
11 entries across 11 versions & 5 rubygems