简体   繁体   English

Aptana Studio滑轨使用旧的Ruby和Rials版本

[英]Aptana Studio rails using old Ruby , Rials Version

I downloaded aptana Studio 3 for ubuntu 14.4 recently. 我最近为ubuntu 14.4下载了aptana Studio 3。 When I create a rails application it seems to run on old version of ruby and rails. 当我创建Rails应用程序时,它似乎可以在旧版本的ruby和rails上运行。 In the linux terminal when ask for version of rails and ruby I get new versions like 4.2.0 and 2.2.1. 在linux终端中,当询问rails和ruby的版本时,我得到了4.2.0和2.2.1等新版本。 But in aptana in the terminal it provides i get older version of both ruby(1.9) and rails(2.x) How to make aptana point to a new version 但是在终端的aptana中,它提供了我得到的ruby(1.9)和rails(2.x)的旧版本。如何使aptana指向新版本

Consider creating a .rvmrc for that project in its root directory, so that your IDE would load proper ruby and rails version. 考虑在其根目录中为该项目创建一个.rvmrc ,以便您的IDE可以加载正确的ruby和rails版本。

For Example create a simple .rvmrc file in your root directory 例如,在您的根目录中创建一个简单的.rvmrc文件

place the following content into your .rvmrc file 将以下内容放入您的.rvmrc文件

rvm use ruby-1.9.3-p484@gemset --create

By this way, you say your IDE to load appropriate ruby versions and gemset specified. 通过这种方式,您说您的IDE可以加载适当的红宝石版本和指定的gemset。

It works like charm, 就像魅力一样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM