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
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue