Like the title says, if I use a gem in one app (install it, add to Gemfile, etc.) do I still have to run gem install xxx in a new app?
Like the title says, if I use a gem in one app (install it,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unless you’re not using Bundler, you very rarely need to run
gem install ...at all, actually.More often than not, unless you’re using different Rubies for each of your projects, all of your gems live in folders that get shared across all of the projects that use them. If you’re using
rvmyou can see this directory by runningrvm gemdir.When you use Bundler, it will automatically handle loading the appropriate version of the gem in the (likely) case that you have several versions installed.