lib/generators/cable/resource/templates/erb/scaffold/index.html.erb in cable-0.9.5 vs lib/generators/cable/resource/templates/erb/scaffold/index.html.erb in cable-0.9.6
- old
+ new
@@ -1,15 +1,15 @@
+<%%= paginate @<%= plural_table_name %>, :window => 1 %>
<table>
<thead>
<tr>
- <th>Page</th>
+ <th><%= singular_table_name.capitalize %></th>
<th>Template</th>
<th class="actions">Actions</th>
</tr>
</thead>
<tbody>
-
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
<tr>
<td><strong><%%= link_to <%= singular_table_name %>.title, [:admin, <%= singular_table_name %>], :target => "_blank" %></strong></td>
<td style="text-align:right;"><%%= link_to 'Edit', edit_admin_<%= singular_table_name %>_path(<%= singular_table_name %>) %> <%%= link_to 'Destroy', [:admin, <%= singular_table_name %>], :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
@@ -52,6 +52,7 @@
</td>
</tr>
<%% end %>
<%% end %>
</tbody>
-</table>
+</table>
+<%%= paginate @<%= plural_table_name %>, :window => 1 %>
\ No newline at end of file