rapidfire
rapidfire copied to clipboard
Question text as a label
Hi all, The question text is rendered in the different answers partials using a common instruction:
<%= f.label :answer_text, answer.question.question_text %>
This results in a markup that looks like
<label for="attempt_1_answer_text">How are you ?</label>
This is a bit weird since there is no accompanying input element named 'attempt_1_answer_text'. Also this label does not contain any answer text but rather a question text.
Maybe this label should be replaced by a span or a div element, with a more descriptive id attribute.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 14 days. Thank you for your contributions.