Ask coding questions

← Back to all posts
How do I run my Ruby script so that it can use installed Packages?
realquadrant (0)

I installed via the package function some Ruby Gems. I also used Bundler which created a Gemfile.

Within my script, I used "require_relative" and the Gem file name, but when I run the script, I am still not loading.

It seems like it's unable to find the right path to load the Gem, so wondering what is the right way to do it in replit.