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

exceptionHandle
yanxd 11 years ago
parent 19e851d65a
commit f35dd2a30d

@ -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

Loading…
Cancel
Save