Sha256: 59ca705e7489c156c099f60262769a752aecc7a00a30b1d0c1d8bec15afaa47b

Contents?: true

Size: 778 Bytes

Versions: 6

Compression:

Stored size: 778 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_route_method}(#{singular_name})" %> %></td>
    <td><%%= link_to 'Edit', <%= "edit_#{singular_route_method}(#{singular_name})" %> %></td>
    <td><%%= link_to 'Destroy', <%= "#{singular_route_method}(#{singular_name})" %>, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<%% end %>
</table>

<br />

<%%= link_to 'New <%= singular_title_name %>', new_<%= singular_route_method %> %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stage-0.4.0 rails_generators/stage/templates/view_index.html.erb
stage-0.4.2 rails_generators/stage/templates/view_index.html.erb
stage-0.4.1 rails_generators/stage/templates/view_index.html.erb
stage-0.4.3 rails_generators/stage/templates/view_index.html.erb
stage-0.4.4 rails_generators/stage/templates/view_index.html.erb
stage-0.4.5 rails_generators/stage/templates/view_index.html.erb