<% page_title 'Contacts' %> <% if !@contacts || @contacts.empty? %>

No contacts

<% else %> <% @contacts.sort_by {|c| [c.last_name, c.first_name] }.each do |contact| %> <% end %>
Name Email
<%= h contact.name %> <%= h contact.email %>
<% end %>