Rvmrc file not working

I created a gemset called rails2ruby192 and I added the code below in my .rvmrc file in the root directory, but it does not load gemset.

 ruby-1.9.2-p180@rails2ruby192 
+5
source share
3 answers

RocketR is correct. However, a more β€œcorrect” way would be:

cd into the project directory and run the command:

 rvm --rvmrc --create use 1.9.2-p180@rails2ruby192 

in the root directory of your project. This will create .rvmrc for the project in this directory, create AND use gemset if it does not already exist.

In addition, this method or the one you choose will β€œtrust” the newly created .rvmrc file. To do this, you will need to do the following:

 rvm reload 

while in this directory when RVM reboots, see the .rvmrc file and make sure that it is not trusted and gives you the opportunity to review it and trust it. The reason for using the "rvm reload" command is because it causes a whole host of things to structure and stabilize the environment for this particular project, including reloading, reloading .rvmrc (to make sure you use the correct paths and variables for this gemset), by checking is there a .rvmrc power of attorney or not, and then gives you the opportunity to trust it. If you say yes, it will end by fully downloading the selected Ruby @gemset.

+14
source

Try rvm use ruby-1.9.2-p180@rails2ruby192 instead

+5
source

To change the level of trust for executing the .rvmrc file when entering the folder that I used

 rvm rvmrc {trust,untrust,trusted,load,reset} 

As seen from this SO answer

+5
source

All Articles