Sha256: 724777d7300a9a41e28b15d958e67d9126dffe1b261f076f9cc36eeba695c85a

Contents?: true

Size: 783 Bytes

Versions: 2

Compression:

Stored size: 783 Bytes

Contents

<div class="inline-actions">
	<%%= link_to 'New <%= singular_name.humanize %>', new_<%= singular_name %>_path %>
</div>

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

<table>
  <tr>
		<% for attribute in attributes -%>
	    <th><%= attribute.column.human_name %></th>
		<% end -%>
		<th>Actions</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 %> %>
		    <%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %>
		    <%%= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %>
	    </td>
	  </tr>
  <%% end %>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jeffleeismyhero-shoulda_generator-0.3.0 rails_generators/shoulda_scaffold/templates/erb/index.html.erb
jeffleeismyhero-shoulda_generator-0.3.1 rails_generators/shoulda_scaffold/templates/erb/index.html.erb