I'm using RVM to manage Ruby versions where I work. We have two Rails repos, one Desktop and one Mobile. The Desktop repo uses Ruby 2.2.4 and the Mobile repo uses 2.2.2.
I know that RVM has the functionality of automatically switching the appropriate Ruby version which is specified in the Gemfile (which is specified in our case in both the Gemfiles).
Now, when I use the default terminal, and run the ruby -v command, inside individual project root directories, it displays the appropriate versions. But when I do the same in VS terminal, it displays the default version, which is 2.2.4.
Now my main problem was that the Rails debugger was giving me the following error: Your Ruby version is 2.2.4, but your Gemfile specified 2.2.2 for the Mobile repo whenever I tried to use the VS Debugger. And I suspect that it is because of whatever I've mentioned above.
Is that the case or is it a different issue? Also provide the solution for whatever the issue is.