You need to tell RVM which gemset to use. Try this:
rvm gemset use project_2
If that works, then you may wish to create a .rvmrc
file in project_2's root directory so that it automatically switches to that gemset when you enter the directory:
cd /path/to/project_2
rvm --rvmrc --create 1.9.3@project_2
That'll create a .rvmrc
in /path/to/project_2
. cd
out of the directory and back in, and it'll prompt you asking if you trust the .rvmrc
file. By default, it'll only ask you the first time.
Edit:
It is important to note that when creating a new .rvmrc
, you need to cd
out of the project directory in all open terminal sessions (including rails s
and rails console
). Otherwise the app will continue using the gemset from project_1
.