开发者

How do i specify that i want ruby1.9 in my Rails Projects?

Simply, h开发者_开发知识库ow do you specify that you want ruby1.9 for your project ? And how do you check that it is indeed using it ? I have 1.8.7 and 1.9 in my system currently.


If you use RVM you can add .rvmrc file in project root directory with content:

rvm use 1.9.2-p180

After that when you go to a project directory with terminal, rvm will switch to specified ruby automatically:

$> cd ~/code/project
Using /home/voldy/.rvm/gems/ruby-1.9.2-p180
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜