Sha256: 6d3ea5724988e04a07a8165403e0f2f61f62248346befa7a44c88c2403fe8605

Contents?: true

Size: 698 Bytes

Versions: 56

Compression:

Stored size: 698 Bytes

Contents

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

<table>
  <tr>
<% for attribute in attributes -%>
    <th><%= attribute.column.human_name %></th>
<% end -%>
  </tr>
  
<%% for <%= singular_name %> in @<%= plural_name %> %>
  <tr>
<% for attribute in attributes -%>
    <td><%%=h <%= 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 <%= singular_name %>', new_<%= singular_name %>_path %>

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
backlog-0.0.0 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.0.1 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.0.2 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.0.4 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.0.5 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.1.0 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.1.1 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.1.2 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.2.0 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.2.1 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.0 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.3 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.1 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.2 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.4 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.6 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.5 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.7 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.8 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb
backlog-0.3.9 vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_index.html.erb