X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcustomer%2Fsearchresults.rhtml;fp=app%2Fviews%2Fcustomer%2Fsearchresults.rhtml;h=a6488cec700c46c7d747a116c8fe98ac79ac68dd;hb=c9f35305eb2750116e7a073265ea6f1081226895;hp=0000000000000000000000000000000000000000;hpb=0afc41c8d27c42f33040955d6d25ad92f9fbd73d;p=cs356-p2-videostore.git diff --git a/app/views/customer/searchresults.rhtml b/app/views/customer/searchresults.rhtml new file mode 100644 index 0000000..a6488ce --- /dev/null +++ b/app/views/customer/searchresults.rhtml @@ -0,0 +1,26 @@ +

Search Results

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

Sorry, there were no results

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