开发者

Making scripts use 1.8.7 and Rails use 1.9.2

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜