Sha256: 2685139a24ddc94628bbe27c18897e75996dce417e2eeda4daf0d86cfb98ceeb

Contents?: true

Size: 774 Bytes

Versions: 6

Compression:

Stored size: 774 Bytes

Contents

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

<table>
  <tr>
<% for attribute in attributes -%>
    <th><%= attribute.column.human_name %></th>
<% end -%>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
		<th>&nbsp;</th>
  </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>

<p><%%= link_to 'New <%= singular_name.humanize %>', new_<%= singular_name %>_path %></p>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoulda_machinist_generator-0.4.4 rails_generators/shoulda_machinist_scaffold/templates/erb/index.html.erb
shoulda_machinist_generator-0.4.3 rails_generators/shoulda_machinist_scaffold/templates/erb/index.html.erb
shoulda_machinist_generator-0.4.2 rails_generators/shoulda_machinist_scaffold/templates/erb/index.html.erb
shoulda_machinist_generator-0.4.1 rails_generators/shoulda_machinist_scaffold/templates/erb/index.html.erb
shoulda_machinist_generator-0.4.0 rails_generators/shoulda_machinist_scaffold/templates/erb/index.html.erb
shoulda_machinist_generator-0.3.4 rails_generators/shoulda_machinist_scaffold/templates/erb/index.html.erb