Move edit account action to show
This commit is contained in:
parent
9929c1b585
commit
d1de8462d6
25 changed files with 75 additions and 71 deletions
|
@ -101,7 +101,7 @@ class UsersController < ApplicationController
|
|||
current_user.data_public = true
|
||||
current_user.save
|
||||
flash[:notice] = t ".flash success"
|
||||
redirect_to edit_account_path
|
||||
redirect_to account_path
|
||||
end
|
||||
|
||||
##
|
||||
|
@ -135,7 +135,7 @@ class UsersController < ApplicationController
|
|||
|
||||
session[:user_errors] = current_user.errors.as_json
|
||||
|
||||
redirect_to edit_account_path
|
||||
redirect_to account_path
|
||||
else
|
||||
user = User.find_by(:auth_provider => provider, :auth_uid => uid)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue