<% exercise.exercise_questions.each do |exercise_question|%>
<% if exercise_question.question_type == 1%> <%= render :partial => 'show_MC', :locals => {:exercise_question => exercise_question} %> <% elsif exercise_question.question_type == 2%> <%= render :partial => 'show_MCQ', :locals => {:exercise_question => exercise_question} %> <% elsif exercise_question.question_type == 3%> <%= render :partial => 'show_single', :locals => {:exercise_question => exercise_question} %> <% end%>
<% end %>