|
|
|
@ -1294,7 +1294,7 @@ class ExercisesController < ApplicationController
|
|
|
|
|
def export_exercise
|
|
|
|
|
@request_url = request.base_url
|
|
|
|
|
@exercise_questions = @exercise.exercise_questions.includes(:exercise_choices).order("question_number ASC")
|
|
|
|
|
filename_ = "#{@exercise.user.real_name}_#{@course.name}__#{Time.now.strftime('%Y%m%d_%H%M%S')}.pdf"
|
|
|
|
|
filename_ = "#{@exercise.user.real_name}_#{@course.name}_#{Time.now.strftime('%Y%m%d_%H%M%S')}.pdf"
|
|
|
|
|
stylesheets = "#{Rails.root}/app/templates/exercise_export/exercise_export.css"
|
|
|
|
|
render pdf: 'exercise_export/blank_exercise', filename: filename_, stylesheets: stylesheets
|
|
|
|
|
end
|
|
|
|
|