X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fvideo%2Fsearchresults.rhtml;fp=app%2Fviews%2Fvideo%2Fsearchresults.rhtml;h=daefca04f63e8429f77b204417d7c5141c6dc820;hb=3947513155ffed3b49a2cd0e80cd3ef26b551f59;hp=0000000000000000000000000000000000000000;hpb=6223af90077b9722e4d8add790a407f2cbcb6962;p=cs356-p2-videostore.git diff --git a/app/views/video/searchresults.rhtml b/app/views/video/searchresults.rhtml new file mode 100644 index 0000000..daefca0 --- /dev/null +++ b/app/views/video/searchresults.rhtml @@ -0,0 +1,28 @@ +

Search Results

+ +<% if @videos.empty? %> +

Sorry, there were no results

+<% else %> + + + + + <% for column in Video.content_columns %> + + <% end %> + + +<% for video in @videos %> + + + + <% for column in Video.content_columns %> + + <% end %> + + + + +<% end %> +
Video IDChecked Out<%= column.human_name %>
<%=h video.id %><%=h video.checkedout? %><%=h video.send(column.name) %><%= link_to 'Show', :action => 'show', :id => video %><%= link_to 'Edit', :action => 'edit', :id => video %><%= link_to 'Destroy', { :action => 'destroy', :id => video }, :confirm => 'Are you sure?', :post => true %>
+<% end %>