Listing medias

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