Listing contacts

<% @contacts.each do |contact| %> <% end %>
First name Last name Email Comment
<%= contact.first_name %> <%= contact.last_name %> <%= contact.email %> <%= contact.comment %> <%= link_to 'Show', contact %> <%= link_to 'Edit', edit_contact_path(contact) %> <%= link_to 'Destroy', contact, method: :delete, data: { confirm: 'Are you sure?' } %>

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