Sha256: a860d3f12bbac96452e7cc1be1f48184907e9ca0016308e518fd6ac3a3813218

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

<h1>Listing <%= plural_title_name %></h1>

<table>
  <tr>
<% for attribute in attributes -%>
    <th><%= attribute.column.human_name %></th>
<% end -%>
  </tr>

<%% for <%= singular_name %> in @<%= plural_name %> %>
  <tr>
<% for attribute in attributes -%>
    <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
<% end -%>
    <td><%%= link_to 'Show', <%= singular_name %> %></td>
    <td><%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %></td>
    <td><%%= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<%% end %>
</table>

<br />

<%%= link_to 'New <%= singular_title_name %>', new_<%= singular_name %>_path %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stage-0.3.2 rails_generators/stage/templates/view_index.html.erb
stage-0.3.1 rails_generators/stage/templates/view_index.html.erb