Reputation: 709
I've set up an RVM environment and installed Bundler and Rake.
In my Project I've got a Gemfile, when I run bundle install
the gems get installed in the project folder that I've specified. But when I run gem list
I don't see the gems installed by Bundler.
Why is that?
Thanks for your help
Edit: And also I've definied the rails gem and it's version in the project Gemfile so I never ran gem install rails
Edit 2:
I've ran gem install rails
. When I run rails -v
outside my project I get 3.2.12, inside my project folder I get 3.2.11 which is the version defined in my Gemfile.
But why? Why did I have to install Rails globally?
Upvotes: 1
Views: 369
Reputation: 950
In your .rvmrc
write following code:
rvm use <ruby_version>@<project_name> --create
In my case ruby_version
is ruby-1.9.3-p194
Once you navigate to your project path, run bundle install
to install all the gems specific to your project.
Upvotes: 1