Module: Rapidfire::ApplicationHelper
- Defined in:
- app/helpers/rapidfire/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#checkbox_checked?(answer, option) ⇒ Boolean
8 9 10 |
# File 'app/helpers/rapidfire/application_helper.rb', line 8 def checkbox_checked?(answer, option) answer.answer_text.to_s.split(",").include?(option) end |
#render_answer_form_helper(answer, form) ⇒ Object
3 4 5 6 |
# File 'app/helpers/rapidfire/application_helper.rb', line 3 def render_answer_form_helper(answer, form) partial = answer.question.type.to_s.split("::").last.downcase render partial: "rapidfire/answers/#{partial}", locals: { f: form, answer: answer } end |