<%= @exercise.try(:exercise_description).nil? ? "" : @exercise.try(:exercise_description).html_safe %>
<%= convert_to_char((index+1).to_s)%><%= s.choice_text%>
<% end %> <% elsif q.question_type == 1 %> <% q.exercise_choices.each_with_index do |s,index| %><%= convert_to_char((index+1).to_s)%><%= s.choice_text%>
<% end %> <% elsif q.question_type == 2 %><% q.exercise_choices.each_with_index do |s,index| %> <%= s.choice_text %> <% end %>
<% elsif q.question_type == 3 %> <% st_counts = q.exercise_standard_answers.pluck(:exercise_choice_id).uniq %> <% st_counts.each_with_index do |s,index| %>答案(填空<%= index+1 %>):
<% end %> <% elsif q.question_type == 4 %><% else %> <% q.exercise_shixun_challenges.each_with_index do |c,index| %>
第<%= index+1 %>关 <%= c.challenge.subject %> <%= c&.question_score %> 分
<% end %> <% end %>