<% @all_contacts = getChatContacts %>
<%@all_contacts.each do |contact| %> <% if contact.user.connected %>
<% else %> <%end%>