1 <h1>Search Results</h1>
3 <% if @videos.empty? %>
4 <p>Sorry, there were no results</p>
10 <% for column in Video.content_columns %>
11 <th><%= column.human_name %></th>
15 <% for video in @videos %>
17 <td><%=h video.id %></td>
18 <td><%=h video.checkedout? %></td>
19 <% for column in Video.content_columns %>
20 <td><%=h video.send(column.name) %></td>
22 <td><%= link_to 'Show', :action => 'show', :id => video %></td>
23 <td><%= link_to 'Edit', :action => 'edit', :id => video %></td>
24 <td><%= link_to 'Destroy', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :post => true %></td>