X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/403c8941a6ffeb39bd796c0591ca999b6babc0ca..0423d18a8f5b232aa2a08b55351bee553047fb81:/app/controllers/preferences_controller.rb diff --git a/app/controllers/preferences_controller.rb b/app/controllers/preferences_controller.rb index e098a8acc..dcf0d8b64 100644 --- a/app/controllers/preferences_controller.rb +++ b/app/controllers/preferences_controller.rb @@ -26,7 +26,7 @@ class PreferencesController < ApplicationController flash[:notice] = { :partial => "preferences/update_success_flash" } redirect_to preferences_path else - flash[:error] = t ".failure" + flash.now[:error] = t ".failure" render :edit end end