Listing elections

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