<% nav = render_erb('_nav.html.erb', binding) %> <% head = render_erb('_head.html.erb', binding) %> <% foot = render_erb('_foot.html.erb', binding) %> Flapjack - Contacts <%= head %>
<% 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 %>