当我创建一个Poll的新答案时,我需要通过hidden_field:sequence之一来增加该值。我需要在hidden_field中添加什么值?
.poll_row
.poll_item
= f.input :answer, input_html: { class: 'ctrlenter expanding' }, label: false, placeholder: 'Введите вариант ответа'
= f.hidden_field, :sequence, value:??????
= button_tag 'вверх', type: 'button', class: 'up_id', value: 'up'
= button_tag 'вниз', type: 'button', class: 'down_id', value: 'down'
- if @poll.editable?(current_user)
= link_to_remove_association "remove", f, { wrapper_class: 'poll_item' }