* <Fixed the main ui glitch>

* <Fixed issue>

* <Fixed code style>

* <Some more code style fixes>

* Update sessions_helper.rb
This commit is contained in:
John Ma
2018-10-03 11:42:14 -04:00
committed by Jesus Federico
parent f0f0638be3
commit 5c281a1a3f
3 changed files with 9 additions and 8 deletions

View File

@ -79,12 +79,12 @@ class UsersController < ApplicationController
else
# Append custom errors.
errors.each { |k, v| @user.errors.add(k, v) }
render :edit
render :edit, params: { settings: params[:settings] }
end
elsif @user.update_attributes(user_params)
redirect_to edit_user_path(@user), notice: I18n.t("info_update_success")
else
render :edit
render :edit, params: { settings: params[:settings] }
end
end