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

Version Path
backlog-0.12.1 app/views/customers/list.rhtml
backlog-0.12.2 app/views/customers/list.rhtml
backlog-0.12.3 app/views/customers/list.rhtml
backlog-0.12.4 app/views/customers/list.rhtml
backlog-0.14.0 app/views/customers/list.rhtml
backlog-0.13.0 app/views/customers/list.rhtml
backlog-0.13.1 app/views/customers/list.rhtml
backlog-0.14.1 app/views/customers/list.rhtml
backlog-0.14.3 app/views/customers/list.rhtml
backlog-0.14.2 app/views/customers/list.rhtml
backlog-0.14.4 app/views/customers/list.rhtml
backlog-0.15.0 app/views/customers/list.rhtml
backlog-0.16.0 app/views/customers/list.rhtml
backlog-0.15.1 app/views/customers/list.rhtml