<%= link_to t('contact.all_n', :count => @total_contacts.count("DISTINCT contacts.id")), contacts_path %> -
<% Actor.distinct_initials.
contacted_from(current_subject).
merge(Tie.related_by(current_subject.relation_customs.find_by_id(params[:relation]))).
distinct_initials.
each do |l| %>
<%= link_to l.initial,{:letter => l.initial,:page => 1},:class => "contact_letter_link" %>
<% end %>