diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index f34c36c54..1ccab1111 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -75,8 +75,8 @@ class PeopleController < ApplicationController end def destroy - current_user.disconnect(Person.where(:id => params[:id].first)) - respond_with :location => root_url + current_user.disconnect(Person.where(:id => params[:id]).first) + redirect_to root_url end def edit