Sha256: e9642bcf43484f613f64439b5e9116d872dd70e98b92c115c36297d1897beef2

Contents?: true

Size: 731 Bytes

Versions: 34

Compression:

Stored size: 731 Bytes

Contents

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

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

<%% @<%= plural_name %>.each do |<%= singular_name %>| %>
  <tr>
<% for attribute in attributes -%>
    <td><%%= <%= 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 <%= human_name %>', new_<%= singular_name %>_path %>

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
rails3-generators-0.13.0 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.12.1 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.12.0 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.11.0 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.10.3 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.10.2 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.10.1 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.10.0 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.9.2 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.9.1 lib/generators/erubis/scaffold/templates/index.html.erb
rails3-generators-0.9.0 lib/generators/erubis/scaffold/templates/index.html.erb
railties-3.0.0.beta4 lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.0.0.beta3 lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.0.0.beta2 lib/rails/generators/erb/scaffold/templates/index.html.erb