将:verification_status
user_attributes
practice_user_params
的{{1}}枚举传入assign属性方法的正确方法是什么?这就是我目前所拥有的:
@practice_user.assign_attributes({:verification_status => User.verification_statuses[:user_not_verified]})
def practice_user_params
params.require(:practice_user).permit(:role, user_attributes: [:id, :first_name, :last_name, :email, :verification_status])
end