formatting questions

This commit is contained in:
Jared Cosulich 2017-10-31 20:26:50 -04:00
parent 83c2834887
commit b98d77a153
2 changed files with 6 additions and 1 deletions

View file

@ -1,2 +1,7 @@
module QuestionsHelper
def format_question(question_text)
question_text.gsub("[Field-MathTeacher][Field-ScienceTeacher][Field-EnglishTeacher][Field-SocialTeacher]", "teacher")
end
end

View file

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