diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index 8f1ea9553..044285a31 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -5,6 +5,7 @@ class PeopleController < ApplicationController respond_to :json, :only => [:index, :show] def index + @groups_dropdown_array = current_user.groups.collect{|x| [x.to_s, x.id]} @people = Person.search params[:q] respond_with @people end diff --git a/app/views/people/index.html.haml b/app/views/people/index.html.haml index e550ae090..2b89fb17d 100644 --- a/app/views/people/index.html.haml +++ b/app/views/people/index.html.haml @@ -41,6 +41,6 @@ %td %td = form_for Request.new do |f| - = f.select(:group_id, @groups_array) + = f.select(:group_id, @groups_dropdown_array) = f.hidden_field :destination_url, :value => person.email = f.submit "add friend"