]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/profiles_controller.rb
Merge pull request #3691 from AntonKhorev/wikipedia-secondary-links
[rails.git] / app / controllers / profiles_controller.rb
index b48d08ad2ebece1d3fb14ed1ffaa18fbe6d18968..4005176ce192c529d8f4f535e57ada04569f1622 100644 (file)
@@ -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