From e0a0e6d051afb018a0fd44be69485f38fdb3ee05 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Mon, 30 Mar 2020 11:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9find=5Fuser=5Fwith=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/application_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 690dc502e..e486936fd 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -682,7 +682,8 @@ class ApplicationController < ActionController::Base def find_user_with_id @user = User.find_by_id params[:user_id] - render_not_found("未找到’#{params[:login]}’相关的用户") unless @user + # render_not_found("未找到’#{params[:login]}’相关的用户") unless @user + render_error("未找到相关的用户") unless @user end def find_repository