Project

General

Profile

« Previous | Next » 

Revision d995ecb4

Added by Paul Kelly almost 14 years ago

  • ID d995ecb41af4d4cb394e89a12983dc168fcf97a3

Ensure that all index views and controllers are consistent

Ensures that all controllers use @search in the index method
Ensure that all index views use pagination

View differences:

app/views/architectures/index.html.erb
<tr class="<%= cycle("even", "odd") -%>">
<td><%= link_to h(architecture.name), edit_architecture_path(architecture) %></td>
<td><%=h architecture.operatingsystems.to_sentence %></td>
<td><%= link_to "Destroy", architecture, :confirm => 'Are you sure?', :method => :delete %></td>
<td anign="right">
<%= link_to "Destroy", architecture, :confirm => "Delete #{architecture.name}?", :method => :delete %>
</td>
</tr>
<% end %>
</table>
<%= page_entries_info @architectures %>
<%= will_paginate @architectures %>
<p><%= link_to "New Architecture", new_architecture_path %></p>

Also available in: Unified diff