With Form_for:
- @questions.each do |secret_question|
= f.check_box :question, {multiple: true}, question.id, 0
= f.label :question, question.body
While saving, if I've checked last element - in base saved right value,
but if I've checked others elements (from first till penultimate) - in base saved '0'
What is wrong? Thank you
Aucun commentaire:
Enregistrer un commentaire