<%= bootstrap_form_with(model: checklist_entry, layout: :horizontal) do |form| %> <%= form.hidden_field :checklist_id %> <%= form.collection_select :check_id, Check.all.order(:name), :id, :name %> <%= form.number_field :position %> <%= form.submit %> <% end %>