From f4ca29da416f2f2c5becab315d4c0648c36128b5 Mon Sep 17 00:00:00 2001 From: maxwell Date: Fri, 6 Aug 2010 17:19:33 -0700 Subject: [PATCH] PeopleController now renders json when given a query. Unfortunately, it only renders the matching friend ids without first or last names... --- app/controllers/people_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index 4c186569f..ec9826967 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -7,7 +7,7 @@ class PeopleController < ApplicationController render :index else @people = Person.search_for_friends(params[:q]) - render :xml => @people + render :json => @people.to_json(:only => :_id) end end