% page_title 'Contacts' %>
<% if !@contacts || @contacts.empty? %>
No contacts
<% else %>
Name |
Email |
<% @contacts.sort_by {|c| [c.last_name, c.first_name] }.each do |contact| %>
<%= h contact.name %> |
<%= h contact.email %> |
<% end %>
<% end %>
Edit contacts
beta