redirect after contact destroy

This commit is contained in:
zhitomirskiyi 2011-01-17 14:46:19 -08:00
parent be92f3866c
commit fc92779ddc

View file

@ -75,8 +75,8 @@ class PeopleController < ApplicationController
end end
def destroy def destroy
current_user.disconnect(Person.where(:id => params[:id].first)) current_user.disconnect(Person.where(:id => params[:id]).first)
respond_with :location => root_url redirect_to root_url
end end
def edit def edit