<%= f.field_container :zones do %> <%= f.label :zones, t('spree.admin.payment_method_zones') %>
<% payment_method_zones = f.object.zones.to_a %> <% Spree::Zone.all.each do |zone| %> <%= label_tag do %> <%= check_box_tag('payment_method[zone_ids][]', zone.id, payment_method_zones.include?(zone)) %> <%= zone.name %> <% end %>
<% end %> <%= error_message_on :shipping_method, :zone_id %> <% end %>