To make a project myapp
to have its bundler install gems inside the project path with below this command -
bundle config --local path <the path>
Assume the project directory is myapp
~:$ cd myapp
~/myapp:$ bundle config --local path vendor/bundle
~/myapp:$ bundle install
That's it. Doing this, new directry is created : ~/myapp/vendor/bundle, will all gem files for the project. read more at official documentation page