td*{'data-id' =>portion.id} =form_for [@exam, portion], remote: true do |f| =f.number_field :weight, class: 'exam-portion-weight', min: 0, max: 100