end
@user.description = params[:user][:description]
+ @user.languages = params[:user][:languages].split(",")
@user.home_lat = params[:user][:home_lat]
@user.home_lon = params[:user][:home_lon]
if @user.save
+ set_locale
+
if params[:user][:email] == @user.new_email
flash[:notice] = I18n.t('user.account.flash update success confirm needed')
Notifier.deliver_email_confirm(@user, @user.tokens.create)
if user
token = user.tokens.create
Notifier.deliver_lost_password(user, token)
- flash[:notice] = I18n.t('user.lost_password.notice.email on way')
+ flash[:notice] = I18n.t('user.lost_password.notice email on way')
else
flash[:notice] = I18n.t('user.lost_password.notice email cannot find')
end