normalized question text

This commit is contained in:
Jared Cosulich 2018-07-29 10:30:07 -04:00
parent e39e32f700
commit d9b7fd89f2
2 changed files with 5 additions and 1 deletions

View file

@ -63,4 +63,8 @@ class Question < ApplicationRecord
most_popular_answer most_popular_answer
) )
end end
def normalized_text
text.gsub("[science/math/English/social studies]", "")
end
end end

View file

@ -4,7 +4,7 @@
.col-12.col-md-6.py-3 .col-12.col-md-6.py-3
.question.p-2{id: "question-#{question.id}"} .question.p-2{id: "question-#{question.id}"}
%p.question-text.pt-3.px-2 %p.question-text.pt-3.px-2
= question.text = question.normalized_text
.row.pt-2 .row.pt-2
.col-4.indicator-container.centered .col-4.indicator-container.centered