Merge branch 'master' into 'master'
html实训,点击评测后,还是一片白 html实训,点击评测后,还是一片白 See merge request !36
This commit is contained in:
commit
3de9ed68b5
|
|
@ -92,10 +92,7 @@ class ContestsController < ApplicationController
|
|||
end
|
||||
|
||||
def create
|
||||
@contest = Contest.new
|
||||
@contest.name = params[:contest][:name]
|
||||
params[:contest][:is_public] ? @contest.is_public = 1 : @contest.is_public = 0
|
||||
@contest.user_id = User.current.id
|
||||
|
||||
if @contest && @contest.save
|
||||
#unless User.current.admin?
|
||||
member = ContestMember.new(:user_id => User.current.id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue