—€ this.
This commit is contained in:
parent
81055c49c5
commit
f515bf7bea
|
@ -8,7 +8,7 @@ class UserController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
params.permit(:display_name)
|
params.require(:display_name)
|
||||||
current_user.display_name = params[:display_name]
|
current_user.display_name = params[:display_name]
|
||||||
current_user.save!
|
current_user.save!
|
||||||
redirect_to edit_user_profile_path
|
redirect_to edit_user_profile_path
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
.container.j2-page
|
.container.j2-page
|
||||||
= render 'settings_tabs'
|
= render 'settings_tabs'
|
||||||
.col-md-9.col-xs-12.col-sm-9
|
.col-md-9.col-xs-12.col-sm-9
|
||||||
%i TODO
|
= bootstrap_form_for(update_user_profile_path, method: "patch") do |f|
|
||||||
|
|
||||||
|
= f.text_field :display_name, label: "Your name"
|
||||||
|
|
||||||
|
= f.submit
|
Loading…
Reference in New Issue