Newer
Older
dmpopidor / app / views / questions / _new_edit_question_textfield.html.erb
@John Pinto John Pinto on 6 Aug 2019 279 bytes Enable spellcheck for text fields:
<%# locals: { f, question, answer } %>
<div class="form-group">
    <%= f.label(:text, sanitize(question.text), class: 'control-label') %>
    <%= text_field_tag('answer[text]', strip_tags(answer.text || question.default_value), class: 'form-control', spellcheck: true) %>
</div>