X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e7ede890e8e948236d3dbc48e24aca00cd01f62..0ab8d954ad6d6e4cee5c1238973b8f693c788fcb:/app/controllers/preferences_controller.rb diff --git a/app/controllers/preferences_controller.rb b/app/controllers/preferences_controller.rb index 1d96766ef..910f6a24f 100644 --- a/app/controllers/preferences_controller.rb +++ b/app/controllers/preferences_controller.rb @@ -11,8 +11,6 @@ class PreferencesController < ApplicationController def show; end - def edit; end - def update current_user.languages = params[:user][:languages].split(",") @@ -40,7 +38,7 @@ class PreferencesController < ApplicationController redirect_to preferences_path else flash.now[:error] = t ".failure" - render :edit + render :show end end end