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:
parent
58de12df5e
commit
f4ca29da41
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue