Huh, what exactly doesn't work? Their own readme says "TruffleRuby runs Rails and is compatible with many gems, including C extensions." (https://github.com/oracle/truffleruby)
TruffleRuby is not 100% compatible with MRI 3.2 yet
Rails: Rails 8 will require Ruby 3.2.0 or newer
https://github.com/oracle/truffleruby