题库调整

dev_oauth
cxt 5 years ago
parent f56eb99536
commit bc06f54ce9

@ -354,6 +354,7 @@ class ExercisesController < ApplicationController
# question_bank = QuestionBank.new ques_params # question_bank = QuestionBank.new ques_params
# question_bank.save # question_bank.save
# end # end
exercise.update_attributes!(exercise_bank_id: current_ex_bank.id)
end end
# 试卷的问题的输入 # 试卷的问题的输入
exercise.exercise_questions.each do |q| exercise.exercise_questions.each do |q|

@ -301,6 +301,7 @@ class GraduationTasksController < ApplicationController
course_list_id: @course.course_list_id) course_list_id: @course.course_list_id)
task_bank.save! task_bank.save!
task.update_attributes!(gtask_bank_id: task_bank.id)
end end
task.attachments.each do |attachment| task.attachments.each do |attachment|
att = attachment.copy att = attachment.copy

@ -562,6 +562,7 @@ class PollsController < ApplicationController
question_bank = QuestionBank.new ques_params question_bank = QuestionBank.new ques_params
question_bank.save question_bank.save
end end
poll.update_attributes!(exercise_bank_id: current_ex_bank.id)
end end
# 问卷的问题的输入 # 问卷的问题的输入
poll.poll_questions.each do |f| poll.poll_questions.each do |f|

Loading…
Cancel
Save