Listing contracts

<% @contracts.each do |contract| %> <% end %>
Date Name Signer
<%=h contract.datesigned %> <%=h contract.name %> <% if(!contract.signer.blank?) then %><%=h contract.signer.first_name %> <%=h contract.signer.last_name %><% end %> <%= link_to 'Show', contract %> <%= link_to 'Edit', edit_contract_path(contract) %> <%= link_to 'Destroy', contract, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New contract', new_contract_path %>