1 <h1>Listing bitems</h1>
6 <th>Merchandise Name</th>
7 <% for column in Bitem.content_columns %>
8 <th><%= column.human_name %></th>
12 <% for bitem in @bitems %>
14 <td><%=h bitem.customer.name %></td>
15 <td><%=h bitem.merchandise.title %></td>
16 <% for column in Bitem.content_columns %>
17 <td><%=h bitem.send(column.name) %></td>
19 <td><%= link_to 'Show', :action => 'show', :id => bitem %></td>
20 <td><%= link_to 'Edit', :action => 'edit', :id => bitem %></td>
21 <td><%= link_to 'Destroy', { :action => 'destroy', :id => bitem }, :confirm => 'Are you sure?', :method => :post %></td>
26 <%= link_to 'Previous page', { :page => @bitem_pages.current.previous } if @bitem_pages.current.previous %>
27 <%= link_to 'Next page', { :page => @bitem_pages.current.next } if @bitem_pages.current.next %>
31 <%= link_to 'New bitem', :action => 'new' %>