X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcustomer%2Flist.rhtml;fp=app%2Fviews%2Fcustomer%2Flist.rhtml;h=fb29a6587e7e1c03adef1fb50210c93db8780461;hb=f09365a8d79a8a4a756fdba732bb753829df0df2;hp=0000000000000000000000000000000000000000;hpb=344d975e26054e2f69ee044c80a8b3232145cd47;p=cs356-p2-videostore.git diff --git a/app/views/customer/list.rhtml b/app/views/customer/list.rhtml new file mode 100644 index 0000000..fb29a65 --- /dev/null +++ b/app/views/customer/list.rhtml @@ -0,0 +1,27 @@ +

Listing customers

+ + + + <% for column in Customer.content_columns %> + + <% end %> + + +<% for customer in @customers %> + + <% for column in Customer.content_columns %> + + <% end %> + + + + +<% end %> +
<%= column.human_name %>
<%=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?', :method => :post %>
+ +<%= link_to 'Previous page', { :page => @customer_pages.current.previous } if @customer_pages.current.previous %> +<%= link_to 'Next page', { :page => @customer_pages.current.next } if @customer_pages.current.next %> + +
+ +<%= link_to 'New customer', :action => 'new' %>