Fixed: cannot load such file -- bigdecimal (LoadError)
· 6 min read
A one-line Ruby script that used the humanize gem stopped with cannot load such file -- bigdecimal (LoadError) on Ruby 4.0. Since Ruby 3.4, bigdecimal no longer comes as a default gem, and under Bundler a program can only load gems the project lists. Adding bigdecimal to the Gemfile fixes it.
