X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9f341430493cdaafb6ea9ce6ac29fc6af291d57c..8f7f02b025f59db466fdb22ea3686cb6c5adc400:/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