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/
精彩评论