Sha256: 4467c738307eff507c6badd665861b6ba5b5cf14b5df3e6f00d9bef3be17ffa7
Contents?: true
Size: 870 Bytes
Versions: 14
Compression:
Stored size: 870 Bytes
Contents
<h1>Listing customers</h1> <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> <%= 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 %> <br /> <%= link_to 'New customer', :action => 'new' %>
Version data entries
14 entries across 14 versions & 1 rubygems