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