質問編集履歴

1

誤字

2022/08/14 20:10

投稿

higmonta
higmonta

スコア29

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,8 @@
50
50
 
51
51
  def update
52
52
  @user = User.find(current_user.id)
53
+ @user.attributes = profile_params
53
- if @user.update(:not_password_validation)
54
+ if @user.save(context: :not_password_validation)
54
55
  flash[:success] = t '.success_message'
55
56
  redirect_to profile_path
56
57
  else