I accidentally ran sudo bundle install smtp_mail
and now all my gems are in this directory called smtp_mail
inside my Rails app.
I'm not sure about the default location of gems? And, my Rails app is complaining when it starts. Is there a way I can revert back?
This helped me when I ran into a simular issue.
I rm -rf all files in .bundle and then removed and then I followed the commands in this document.
http://ruby-korea.github.io/bundler-site/issues.html.
pay attention on this...
from the bundle man page:
The path is specified in a file located in
If you delete the .bundle directory and then delete your smtp_mail directory you will be back at square one. If you really want a local (to your app) installation of the gems, I recommend you run
Good luck!
After a bit of Googling around i was able to find the answer Just run:
sudo bundle install --system
and you'll have your gems back at their appropriate system directories.