Listing problems

<%= link_to 'Main', :controller => 'main', :action => 'list' %>
<% for column in Problem.content_columns %> <% end %> <% for problem in @problems %> <% for column in Problem.content_columns %> <% end %> <% end %>
<%= column.human_name %>
<%=h problem.send(column.name) %><%= link_to '[Toggle]', :action => 'toggle_avail', :id => problem.id %> <%= link_to '[Stat]', :action => 'stat', :id => problem.id %> <%= link_to '[Show]', :action => 'show', :id => problem %> <%= link_to '[Edit]', :action => 'edit', :id => problem %> <%= link_to '[Destroy]', { :action => 'destroy', :id => problem }, :confirm => 'Are you sure?', :method => :post %>
<%= link_to 'Previous page', { :page => @problem_pages.current.previous } if @problem_pages.current.previous %> <%= link_to 'Next page', { :page => @problem_pages.current.next } if @problem_pages.current.next %>
<%= link_to 'New problem', :action => 'new' %>