Sha256: 5e3f308508a14cc9bd8f89828ec86152d67dfe691e319c5db1347dd7ef47f605
Contents?: true
Size: 720 Bytes
Versions: 42
Compression:
Stored size: 720 Bytes
Contents
<h1>Listing customers</h1> <%= will_paginate(@customers) %> <table> <tr> <% for column in Customer.content_columns %> <th><%= column.human_name %></th> <% end %> </tr> <% for customer in @customers %> <tr> <% for column in Customer.content_columns %> <td><%=h customer.send(column.name) %></td> <% end %> <td><%= link_to 'Show', :action => 'show', :id => customer %></td> <td><%= link_to 'Edit', :action => 'edit', :id => customer %></td> <td><%= link_to 'Destroy', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %></td> </tr> <% end %> </table> <%= will_paginate(@customers) %> <br /> <%= link_to 'New customer', :action => 'new' %>
Version data entries
42 entries across 42 versions & 1 rubygems