finishes i18n set_locale with user settings

This commit is contained in:
Manuel Wiedenmann 2013-06-14 02:39:25 +02:00
parent 5b7ec86ed6
commit 2c1d9aeb9c
4 changed files with 7 additions and 1 deletions

View file

@ -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