Sha256: f398d016d0fa8dc84c6d4505a7dfc792bfef510554f71bde6299d7658477e2d1

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

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

<table>
<tr>
<% for attribute in attributes -%>
<th><%= attribute.column.human_name %></th>
<% end -%>
<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.humanize.downcase %>', <%= singular_name %>_url(<%= singular_name %>) %></td>
</tr>
<%% end %>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoulda_machinist_generator-0.4.4 rails_generators/shoulda_machinist_admin_scaffold/templates/view_index.html.erb
shoulda_machinist_generator-0.4.3 rails_generators/shoulda_machinist_admin_scaffold/templates/view_index.html.erb
shoulda_machinist_generator-0.4.2 rails_generators/shoulda_machinist_admin_scaffold/templates/view_index.html.erb
shoulda_machinist_generator-0.4.1 rails_generators/shoulda_machinist_admin_scaffold/templates/view_index.html.erb
shoulda_machinist_generator-0.4.0 rails_generators/shoulda_machinist_admin_scaffold/templates/view_index.html.erb