X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/83043d6f1cd85729a3f91e5c73d78a39b8ae7d04..967e6d4:/app/controllers/preferences_controller.rb?ds=sidebyside 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