开发者

Making scripts use 1.8.7 and Rails use 1.9.2

开发者 https://www.devze.com 2023-03-07 07:24 出处:网络
In order to use my system management scripts that I have made for my system, I need to run them under Ruby 1.8.7. However, a Rails book that I am reading requires me use 1.9.2. I have both installed a

In order to use my system management scripts that I have made for my system, I need to run them under Ruby 1.8.7. However, a Rails book that I am reading requires me use 1.9.2. I have both installed and开发者_如何转开发 know how to manually switch between them using rvm, but I wish for my system management scripts to be run with 1.8.7 without having me switch manually. Any suggestions?

Thanks in advance.


Make 1.8.7 your default Ruby and add a .rvmrc to your Rails project:

https://rvm.io/workflow/rvmrc/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号