1 <h1>Listing merchandises</h1>
5 <% for column in Merchandise.content_columns %>
6 <th><%= column.human_name %></th>
10 <% for merchandise in @merchandises %>
12 <% for column in Merchandise.content_columns %>
13 <td><%=h merchandise.send(column.name) %></td>
15 <td><%= link_to 'Show', :action => 'show', :id => merchandise %></td>
16 <td><%= link_to 'Edit', :action => 'edit', :id => merchandise %></td>
17 <td><%= link_to 'Destroy', { :action => 'destroy', :id => merchandise }, :confirm => 'Are you sure?', :method => :post %></td>
22 <%= link_to 'Previous page', { :page => @merchandise_pages.current.previous } if @merchandise_pages.current.previous %>
23 <%= link_to 'Next page', { :page => @merchandise_pages.current.next } if @merchandise_pages.current.next %>
27 <%= link_to 'New merchandise', :action => 'new' %>