提交作业字段不合验证,返回页面bug

This commit is contained in:
yanxd 2014-05-12 15:06:34 +08:00
parent 19e851d65a
commit f35dd2a30d
1 changed files with 4 additions and 1 deletions

View File

@ -693,7 +693,10 @@ class BidsController < ApplicationController
redirect_to respond_path(@bid)
else
@bid.safe_attributes = params[:bid]
render :action => 'new_bid'
@homework = @bid
@project = Project.find_by_id(params[:course_id])
@project_id = @project.id
render file: 'projects/new_homework', layout: 'base_courses'
end
end