From 1bfa3651a90ae2e9e784d06f00ae6be4cfab58c3 Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Thu, 20 Dec 2018 13:07:09 -0500 Subject: [PATCH] tweaking percentage display --- app/views/questions/_question.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/questions/_question.html.haml b/app/views/questions/_question.html.haml index d203fb0e..70aba61e 100644 --- a/app/views/questions/_question.html.haml +++ b/app/views/questions/_question.html.haml @@ -54,4 +54,4 @@ - if school_questions.length > 1 %p= "More than one school question: #{school_questions.length}" - school_question = school_questions.first - %p= "Attempts: #{school_question.attempt_count}, Responses: #{school_question.response_count}, Response Rate: #{school_question.response_rate}" + %p= "Attempts: #{school_question.attempt_count}, Responses: #{school_question.response_count}, Response Rate: #{number_to_percentage(school_question.response_rate * 100, precision: 0)}"