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.12 lib/rails/generators/erb/scaffold/templates/index.html.erb
openskies-0.0.2 lib/rails/generators/erb/scaffold/templates/index.html.erb
openskies-0.0.1 lib/rails/generators/erb/scaffold/templates/index.html.erb
graphael-on-rails-0.5.1 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
graphael-on-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.9.1.beta.3 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
fira-0.3.2 lib/generators/fira/scaffold/templates/index.html.fira
devise_sociable-0.1.0 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
fira-0.3.0 lib/generators/fira/scaffold/templates/index.html.fira
backbone-queryparams-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
railscast-assets-0.0.2 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
railscast-assets-0.0.2 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
backbone-deep-rails-0.0.1 vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.9.1.beta vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.2.11 lib/rails/generators/erb/scaffold/templates/index.html.erb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/railties-3.2.10/lib/rails/generators/erb/scaffold/templates/index.html.erb
challah-0.9.0 vendor/bundle/gems/railties-3.2.9/lib/rails/generators/erb/scaffold/templates/index.html.erb
railties-3.2.10 lib/rails/generators/erb/scaffold/templates/index.html.erb