DEV Community 👩‍💻👨‍💻

Discussion on: TIL: Bundle install with a specific version of Bundler

jgomo3 profile image
Jesús Gómez • Edited on

I was trying to make rails new ... to use an specific version of bundler so the Gemfile.lock would state that version in the end of that file.

I tried with:

bundle _x.x.x_ exec rails new ...

But it didn't work, because bundle exec needs a Gemfile to begin with.

What I did was to remove all the bundlers I had installed in the specific Ruby version I wanted to use and keep only the specific version of bundler I wanted.