<% data = action_data @survey = data['survey'] @answer_model = data['answer'] %> <% if @survey.result_type == 3 %>

Your total score is <%= @answer_model.scored_points %>

<% @survey.result_criteria.each do |criteria| %> <% if (criteria[0].to_i..criteria[1].to_i).cover?(@answer_model.scored_points) %>
<%= criteria[2].html_safe %>
<% end %> <% end %> <% else %>

<%= t('survey.answer_success')%>

<% end %> Go Back