Sha256: 1179257c2d92f6bd9756eb4423662aec6034f9c7eb411438ee3b71dd8e5bc4ba

Contents?: true

Size: 919 Bytes

Versions: 1

Compression:

Stored size: 919 Bytes

Contents

<p id="notice"><%%= notice %></p>

<h1><%= plural_table_name.titleize %></h1>

<table>
	<thead>
	<tr>
		<% attributes.reject(&:password_digest?).each do |attribute| -%>
			<th><%= attribute.human_name %></th>
		<% end -%>
		<th colspan="3"></th>
	</tr>
	</thead>

	<tbody>
	<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
	<tr>
		<% attributes.reject(&:password_digest?).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 %>, method: :delete, data: { confirm: 'Are you sure?' } %></td>
	</tr>
	<%% end %>
	</tbody>
</table>

<br>

<%%= link_to 'New <%= singular_table_name.titleize %>', new_<%= singular_table_name %>_path %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
odania-0.2.0 lib/templates/erb/scaffold/index.html.erb