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/medias/index.html.erb
<th>Name</th>
<th>Path</th>
<th>Operatingsystem</th>
<th></th>
</tr>
<% for media in @medias %>
<tr>
<td><%= link_to h(media), edit_media_path(media) %></td>
<td><%=h media.path %></td>
<td><%=h media.operatingsystem %></td>
<td><%= link_to "Destroy", media, :confirm => 'Are you sure?', :method => :delete %></td>
<td align="right">
<%= link_to "Destroy", media, :confirm => "Delete #{media.name}?", :method => :delete %>
</td>
</tr>
<% end %>
</table>
<%= page_entries_info @medias %>
<%= will_paginate @medias %>
<p><%= link_to "New Media", new_media_path %></p>

Also available in: Unified diff