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

Version Path
backlog-0.37.2 app/views/customers/list.rhtml
backlog-0.37.1 app/views/customers/list.rhtml
backlog-0.36.2 app/views/customers/list.rhtml
backlog-0.17.0 app/views/customers/list.rhtml
backlog-0.17.1 app/views/customers/list.rhtml
backlog-0.17.2 app/views/customers/list.rhtml
backlog-0.17.3 app/views/customers/list.rhtml
backlog-0.17.4 app/views/customers/list.rhtml
backlog-0.17.5 app/views/customers/list.rhtml
backlog-0.18.0 app/views/customers/list.rhtml
backlog-0.17.6 app/views/customers/list.rhtml
backlog-0.19.0 app/views/customers/list.rhtml
backlog-0.20.0 app/views/customers/list.rhtml
backlog-0.20.1 app/views/customers/list.rhtml
backlog-0.21.0 app/views/customers/list.rhtml
backlog-0.21.1 app/views/customers/list.rhtml
backlog-0.21.2 app/views/customers/list.rhtml
backlog-0.21.3 app/views/customers/list.rhtml
backlog-0.22.0 app/views/customers/list.rhtml
backlog-0.22.1 app/views/customers/list.rhtml