diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 080b7c2a..7f5344d3 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -42,7 +42,7 @@ class UserController < ApplicationController end def update_profile - profile_attributes = params.require(:profile).permit(:display_name, :motivation_header, :website, :location, :description) + profile_attributes = params.require(:profile).permit(:display_name, :motivation_header, :website, :location, :description, :anon_display_name) if current_user.profile.update(profile_attributes) flash[:success] = t(".success") diff --git a/app/views/settings/_profile.haml b/app/views/settings/_profile.haml index 42aaf5d0..ce715d75 100644 --- a/app/views/settings/_profile.haml +++ b/app/views/settings/_profile.haml @@ -41,6 +41,8 @@ = f.text_field :motivation_header + = f.text_field :anon_display_name, placeholder: APP_CONFIG[:anonymous_name] + = f.text_field :website = f.text_field :location