实训报错

dev_forum
daiao 5 years ago
parent 40614175a2
commit 783f737960

@ -733,7 +733,7 @@ class ShixunsController < ApplicationController
private
def shixun_params
raise("实训名称不能为空") if params[:name].blank?
raise("实训名称不能为空") if params[:shixun][:name].blank?
params.require(:shixun).permit(:name, :trainee, :webssh, :can_copy, :use_scope, :vnc, :test_set_permission,
:task_pass, :repo_name, :multi_webssh, :opening_time, :mirror_script_id, :code_hidden,
:hide_code, :forbid_copy)

Loading…
Cancel
Save