Listing contacts

<% for contact in @contacts %> <% unless contact.lead.nil? %> <% end %> <% end %>
Firstname Lastname Emailaddress Mobile Homephone Streetaddress Suburb Postcode Ipaddress Ticket Handler email Equiry
<%=h contact.firstname %> <%=h contact.lastname %> <%=h contact.emailaddress %> <%=h contact.mobile %> <%=h contact.homephone %> <%=h contact.streetaddress %> <%=h contact.suburb %> <%=h contact.postcode %> <%=h contact.ipaddress %><%=h contact.lead.name %><%=h contact.email %> <% unless contact.enquiry.nil? %><%=h contact.enquiry.first(12) %><% end %> <%= link_to 'Show', contact %> <%= link_to 'Edit', edit_contact_path(contact) %> <%= button_to 'Destroy', contact, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New contact', new_contact_path %>