Sha256: 99f658917da2bfab5df767cf25ccd97da37414ed8f874e7f5c631a65c4a16ca5

Contents?: true

Size: 778 Bytes

Versions: 2

Compression:

Stored size: 778 Bytes

Contents

<h1>Listing <%= plural_name %></h1>

<table>
  <tr>
<%% for column in <%= class_name %>.content_columns %>
    <th><%%= column.human_name %></th>
<%% end %>
  </tr>
  
<%% for <%= singular_name %> in @<%= plural_name %> %>
  <tr>
  <%% for column in <%= class_name %>.content_columns %>
    <td><%%=h <%= singular_name %>.send(column.name) %></td>
  <%% end %>
    <td><%%= link_to 'Show', :action => 'show<%= suffix %>', :id => <%= singular_name %>.id %></td>
    <td><%%= link_to 'Edit', :action => 'edit<%= suffix %>', :id => <%= singular_name %>.id %></td>
    <td><%%= link_to 'Destroy', :action => 'destroy<%= suffix %>', :id => <%= singular_name %>.id %></td>
  </tr>
<%% end %>
</table>

<br />

<%%= link_to 'New <%= singular_name %>', :action => 'new<%= suffix %>' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-0.10.1 lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml
rails-0.10.0 lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml