finishes i18n set_locale with user settings
This commit is contained in:
parent
5b7ec86ed6
commit
2c1d9aeb9c
4 changed files with 7 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ class HomeController < ApplicationController
|
|||
|
||||
def update_profile
|
||||
if @current_user.update_attributes(params[:user])
|
||||
session[:locale] = @current_user.locale
|
||||
redirect_to my_profile_url, notice: I18n.t('home.changes_saved')
|
||||
else
|
||||
render :profile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue