I built some libraries that ease the process, and they power the new MOJ Forms and GOV.UK Forms.
Rails still has a decent foothold across departments, but it's being nibbled away at by Python and.NET.
https://govuk-form-builder.x-govuk.org/
https://govuk-components.x-govuk.org/