<% form.fields_for :settings, form.object.settings do |settings_fields| %> <%= settings_fields.select :max_results, [6, 9, 12], prompt: "", label: %> <% end %>