Fedora doesn't ship with ruby installed and I've previously utilised rbenv
to manage different versions. This gist contains instructions for using the built-in Toolbox / Podman container systems in Fedora so Ruby and Rails development can be carried out without installing packages on the base system.
This should also work well in Silverblue or similar immutable distributions.