formatting questions

pull/1/head
Jared Cosulich 8 years ago
parent 83c2834887
commit b98d77a153

@ -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

@ -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

Loading…
Cancel
Save