When i try to do bundle install, my gem_path and gem_home point to /usr/local/rvm/gems/ which i don\'t have write access and it fails because of invalid permissions. because of
Try to tell to bundler which folder it must use, something like bundle install --path or bundle install --path gems.
bundler
bundle install --path
bundle install --path gems
Note that I didn't test this yet, but it seems promising, please post the result for us.