don't group by

This commit is contained in:
danielgrippi 2011-06-27 14:06:03 -07:00
parent 85da6d340f
commit 1fe4c3c3de
3 changed files with 2 additions and 16 deletions

View file

@ -16,8 +16,6 @@ class ContactsController < ApplicationController
else
@contacts = current_user.contacts.includes(:aspects, :person => :profile).order('profiles.last_name ASC').paginate(:page => params[:page], :per_page => 25)
end
@contacts_grouped = @contacts.group_by{|contact| contact.person.profile.last_name[0,1]}
end
def sharing

View file

@ -35,11 +35,7 @@
.span-15
#people_stream.stream
- @contacts_grouped.each do |letter, contacts|
.right.letter
%h1
= letter
- for contact in contacts
- for contact in @contacts
= render :partial => 'people/person', :locals => {:contact => contact, :person => contact.person}
= will_paginate @contacts

View file

@ -3007,11 +3007,3 @@ ul#left_nav
:margin 0
:display none
#people_stream
:position relative
.letter
:right -80px
h1
:color #eee