Skip to content
Extraits de code Groupes Projets
Valider f4ca29da rédigé par maxwell's avatar maxwell
Parcourir les fichiers

PeopleController now renders json when given a query. Unfortunately, it only...

PeopleController now renders json when given a query.  Unfortunately, it only renders the matching friend ids without first or last names...
parent 58de12df
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,7 +7,7 @@ class PeopleController < ApplicationController ...@@ -7,7 +7,7 @@ class PeopleController < ApplicationController
render :index render :index
else else
@people = Person.search_for_friends(params[:q]) @people = Person.search_for_friends(params[:q])
render :xml => @people render :json => @people.to_json(:only => :_id)
end end
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter