<% genders = [ OpenStruct.new(id: 0, name: "Male"), OpenStruct.new(id: 1, name: "Female"), OpenStruct.new(id: 2, name: "Non-binary"), OpenStruct.new(id: 3, name: "Prefer not to say") ] %> <%= form_with model: @case_log, method: "patch", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <%= f.govuk_collection_radio_buttons :tenant_gender, genders, :id, :name, legend: { text: "Which of these best describes the tenant's gender identity?", size: "l" } %> <%= f.govuk_submit "Save and continue" %> <% end %>