Listing merchandises

<% for column in Merchandise.content_columns %> <% end %> <% for merchandise in @merchandises %> <% for column in Merchandise.content_columns %> <% end %> <% end %>
Merchandise ID<%= column.human_name %>
<%=h merchandise.id %><%=h merchandise.send(column.name) %><%= link_to 'Show', :action => 'show', :id => merchandise %> <%= link_to 'Edit', :action => 'edit', :id => merchandise %> <%= link_to 'Destroy', { :action => 'destroy', :id => merchandise }, :confirm => 'Are you sure?', :method => :post %>
<%= link_to 'Previous page', { :page => @merchandise_pages.current.previous } if @merchandise_pages.current.previous %> <%= link_to 'Next page', { :page => @merchandise_pages.current.next } if @merchandise_pages.current.next %>
<%= link_to 'New merchandise', :action => 'new' %>