Error reading file .../_layouts/xxxx: no implicit conversion of Hash into Integer

People,

In .gitlab-ci.yml for my Jekyll project I am trying to use:

image: ruby:latest

(ie Ruby 3) but I get hundreds of errors like the one in the Subject - I am trying to solve the problem I posted about previously but have not had a response to yet . . is it possible to get Ruby 3 to work?

Thanks,
Phil.