You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/polls/show.json.jbuilder

23 lines
611 B

json.course do
json.partial! "polls/course_name",locals:{course:@course}
end
json.poll do
json.extract! @poll, :id, :polls_status,:polls_name,:polls_description
end
json.user_permission do
json.is_teacher_or @is_teacher_or
end
json.question_types do
json.q_counts @poll_questions_count
json.q_singles @poll_question_singles
json.q_doubles @poll_question_doubles
json.q_mains @poll_question_mains
end
json.questions do
json.array! @poll_questions do | question|
json.partial! "poll_questions/poll_questions", question: question,answers:question.poll_answers
end
end