Sha256: 61dad4fccaddf35b44f88c771c6d3216106302ff5628b20442de5f71587fe61b

Contents?: true

Size: 851 Bytes

Versions: 118

Compression:

Stored size: 851 Bytes

Contents

<h1>Listing <%= plural_table_name %></h1>

<table>
  <tr>
<% attributes.each do |attribute| -%>
    <th><%= attribute.human_name %></th>
<% end -%>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
  <tr>
<% attributes.each do |attribute| -%>
    <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
<% end -%>
    <td><%%= link_to 'Show', <%= singular_table_name %> %></td>
    <td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td>
    <td><%%= link_to 'Destroy', <%= singular_table_name %>, <%= key_value :method, ":delete" %>, <%= key_value :data, "{ #{key_value :confirm, "'Are you sure?'"} }" %> %></td>
  </tr>
<%% end %>
</table>

<br />

<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %>

Version data entries

118 entries across 96 versions & 20 rubygems

Version Path
railties-3.2.9.rc1 lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.8.1 vendor/bundle/gems/railties-3.2.8/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-rolls-0.1.0 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-rolls-0.1.0 vendor/bundle/gems/railties-3.2.8/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/railties-3.2.7/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.8.0.pre vendor/bundle/gems/railties-3.2.7/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.7.1 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.7.0 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.7.0.pre2 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.2.8 lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.2.8.rc2 lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.7.0.pre vendor/bundle/gems/railties-3.2.7/lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.2.7 lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.2.7.rc1 lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.6.2 vendor/bundle/gems/railties-3.2.6/lib/rails/generators/erb/scaffold/templates/index.html.erb
initforthe-cookies-0.0.1 vendor/bundle/gems/railties-3.2.6/lib/rails/generators/erb/scaffold/templates/index.html.erb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.2.6 lib/rails/generators/erb/scaffold/templates/index.html.erb