Sha256: 30ddd1e0ef6664e2068945ef5c57ae3175551be669515928af2246309c7e1f65
Contents?: true
Size: 951 Bytes
Versions: 24
Compression:
Stored size: 951 Bytes
Contents
<%%= content_for :page_header do %> <%% "<%= plural_name.titleize %>" %> <%% end %> <table> <tr> <%- for attribute in model_attributes -%> <th><%= attribute.human_name.titleize %></th> <%- end -%> </tr> <%% for <%= instance_name %> in @<%= instances_name %> %> <tr> <%- for attribute in model_attributes -%> <td><%%= <%= instance_name %>.<%= attribute.name %> %></td> <%- end -%> <%- if action? :show -%> <td><%%= link_to "Show", <%= item_path %> %></td> <%- end -%> <%- if action? :edit -%> <td><%%= link_to "Edit", <%= item_path :action => :edit %> %></td> <%- end -%> <%- if action? :destroy -%> <td><%%= link_to "Destroy", <%= item_path %>, :confirm => 'Are you sure?', :method => :delete %></td> <%- end -%> </tr> <%% end %> </table> <%- if action? :new -%> <p><%%= link_to "New <%= singular_name.titleize %>", <%= item_path :action => :new %> %></p> <%- end -%>
Version data entries
24 entries across 24 versions & 1 rubygems