From 6682ae10eb923165653e1c0a0a0481ca0c80ff9d Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 21 Jul 2017 01:18:42 -0500 Subject: [PATCH] /users/:id/edit: redirect back to settings instead of profile. --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index b837dc652..ca8e39b62 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -62,7 +62,7 @@ class UsersController < ApplicationController else flash[:notice] = "Settings updated" end - respond_with(@user) + respond_with(@user, location: edit_user_path(@user)) end def cache