redirect after contact destroy
This commit is contained in:
parent
be92f3866c
commit
fc92779ddc
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue