@@ -174,7 +174,7 class UsersController < ApplicationController | |||||
174 | def destroy |
|
174 | def destroy | |
175 | @user.destroy |
|
175 | @user.destroy | |
176 | respond_to do |format| |
|
176 | respond_to do |format| | |
177 | format.html { redirect_to(users_url) } |
|
177 | format.html { redirect_to_referer_or(users_url) } | |
178 | format.api { head :ok } |
|
178 | format.api { head :ok } | |
179 | end |
|
179 | end | |
180 | end |
|
180 | end |
General Comments 0
You need to be logged in to leave comments.
Login now