From fc92779ddc71963f9b95e62b3a0237cc08e217d5 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Mon, 17 Jan 2011 14:46:19 -0800 Subject: [PATCH] redirect after contact destroy --- app/controllers/people_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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