X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/caf2e2a242182f2c0dac78fc3f2f39b3fbbc8299..377391e8bb4294a539d5363a20af51243877243c:/app/controllers/profiles_controller.rb diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index b48d08ad2..4005176ce 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -36,7 +36,7 @@ class ProfilesController < ApplicationController flash[:notice] = t ".success" redirect_to user_path(current_user) else - flash[:error] = t ".failure" + flash.now[:error] = t ".failure" render :edit end end