<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Caiwangqin's blog

Focus on Cloud Service, Smart Hardware, Architecture, Technic and beyond…

Aptana : The project XXX is supposed to have a ruby nature.

2007年5月14日星期一

在使用Aptana IDE(build 0.2.8.14433)编辑导入的Ruby on Rails项目时,以Ruby Editor方式打开Ruby文件出现”The project XXX is supposed to have a ruby nature.”的错误,以文本编辑器方式打开编辑Ruby文件非常糟糕,从Google查找到Aptana Forums中看到已经有解决方法了:


The problem that’s showing up here is that we do a lot of things under the hood of ruby projects, and to recognize a ruby project we need to set it to have a “ruby nature”.
You can convert an imported existing project:


1. Add the project to your workspace
2. Switch to the Ruby perspective
3. Select the project in the Ruby Resources View
4. Select the menu option: project -> Add Ruby nature.
This should add the ruby nature to your project and it shouldn’t complain any more when you try to open and edit files.



顺便提醒一下:



  1. 使用 Aptana 时需要手动到首选项中配置Ruby和Rails的安装目录。

  2. Aptana 已经在 RadRails 的基础上前进了不少,使用了和 Eclipse 相同方式的管理插件,可以使用 Subclipse 1.2.1 了,而 RadRails 0.7.2 内置的 Subclipse 还是 1.x 的,支持的 Subversion 版本太老,使用过程中可能出现错误,建设使用 Aptana .


标签:

posted by Jesse Cai, 上午2:57

0 Comments:

发表评论

订阅 帖子评论 [Atom]

<< 主页