Sha256: 89703a0cd72dc015cf49d341f110f40f8c884e491700cb2cc43d013ab2b0c7cd

Contents?: true

Size: 800 Bytes

Versions: 2

Compression:

Stored size: 800 Bytes

Contents

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

<table>
  <tr>
<%% for column in <%= model_name %>.content_columns %>
    <th><%%= column.human_name %></th>
<%% end %>
  </tr>
  
<%% for <%= singular_name %> in @<%= plural_name %> %>
  <tr>
  <%% for column in <%= model_name %>.content_columns %>
    <td><%%=h <%= singular_name %>.send(column.name) %></td>
  <%% end %>
    <td><%%= link_to 'Show', :action => 'show<%= suffix %>', :id => <%= singular_name %> %></td>
    <td><%%= link_to 'Edit', :action => 'edit<%= suffix %>', :id => <%= singular_name %> %></td>
    <td><%%= link_to 'Destroy', {:action => 'destroy<%= suffix %>', :id => <%= singular_name %>}, :confirm => "Are you sure?" %></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.11.0 lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml
rails-0.11.1 lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml