json.total_counts @total_exercise_counts json.total_user_exercises do json.array! @all_exercise_stu_array do |a| json.student_exercise do json.partial! "exercises/user_exercise_info",locals:{exercise:@exercise, is_teacher_or:a[:is_teacher], ex_answerer:a[:ex_answerer], exercise_user:a[:ex_user], ex_obj_array:a[:ex_obj_array], ex_sub_array:a[:ex_sub_array], exercise_questions:@exercise_questions, student_status:@student_status, question_status:@question_status } end end end