Add profile setting for anon display name
This commit is contained in:
parent
cf0d11d860
commit
768d360ce7
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue