title: Failed to install gems via Bundler
body: <p>I am trying to deploy a rails app on heroku, When I push the code to heroku I get the error Failed to install gems via bundler.</p>
  <p>Apparently the bundler can't locate the directory /user/bin/env: which is returning no such file or directory.</p>
  <p>I am new to rails, I found a fix that on Stack exchange that recommended bundle update then commit Gemfile.lock, commit then restart deployment but it has not worked for me, which tells me that failure to deploy is mostly due to the directory not located.</p>
  <p>here is the screen shot of the error returned.</p>
  <p><a href="https://i.stack.imgur.com/BCflh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BCflh.png" alt="enter image description here" /></a></p>