如何将rvm与eclipse的设置绑定

时间:2011-07-04 13:26:02

标签: ruby-on-rails ruby eclipse eclipse-plugin rvm

我正在开发使用多个ruby实例和gemset用于不同的应用程序。为了在我的ruby版本和gemsets之间切换,我使用.rvmrc文件。我还使用Eclipse和radrails插件作为我的开发工具。有没有办法让rclipse在不同的gemset和ruby版本之间使用rvm自动切换?

1 个答案:

答案 0 :(得分:2)

Go into your project directory and create a file called .rvmrc containing the line:

rvm use ruby-1.8.7-p330@testing --default
(or whatever ruby version/gemset you like)

now do
cd ..
cd -
answer "y"
and now Eclipse should use the specified ruby version
(maybe you need to restart Eclipse first).