Sha256: 3bf0a2d4fa2e771f5e42d7fe01ae9b212efe50e7ebe6f1e68f80f6ed6180a460

Contents?: true

Size: 985 Bytes

Versions: 29

Compression:

Stored size: 985 Bytes

Contents

<%%= content_for :page_header do %>
<span style="color:white"><%%  "<%= plural_name.titleize %>" %></span>
<%% 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

29 entries across 29 versions & 1 rubygems

Version Path
thesilverspoon-0.0.18 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.17 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.16 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.15 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.14 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.13 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.12 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.11 lib/templates/views/erb/index.html.erb
thesilverspoon-0.0.10 lib/templates/views/erb/index.html.erb