PeopleController now renders json when given a query. Unfortunately, it only renders the matching friend ids without first or last names...

This commit is contained in:
maxwell 2010-08-06 17:19:33 -07:00
parent 58de12df5e
commit f4ca29da41

View file

@ -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