使用 Aptana RadRails 创建普通 .rb 文件 [英] Creating Plain .rb Files with Aptana RadRails

查看:29
本文介绍了使用 Aptana RadRails 创建普通 .rb 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚购买了 MacBook 用于一些 ruby​​ 开发,并且喜欢 Aptana Studio 的外观作为一个非常好的 IDE.

I have just bought a MacBook for some ruby development and like the look of Aptana Studio as a really nice IDE.

然而,我的问题是我想知道(在深入研究之前,可能会浪费时间)我是否可以创建没有附加 rails 框架的普通旧 .rb 文件?另外,我可以直接从 IDE 执行 ruby​​ 文件,还是必须使用终端?

The question I have, however, is that I want to know (before getting too deep into it, and potentially wasting time) is can I create plain old .rb files without the rails framework attached? Also, can I execute the ruby file straight from the IDE, or will I have to use Terminal?

正如我所说,我只是在学习 Ruby 并且我正在阅读我购买的一些书籍,虽然我确实希望尽快进入 Rails,但我觉得在要求 rails 做之前正确学习语言很重要很多东西给我.

As I said, I am only just learning Ruby and I am working through some books I have bought, and while I do wish to get into rails soon, I feel its important to learn the language properly, before asking rails to do a lot of stuff for me.

对最佳实践和其他潜在 IDE 的任何其他想法也将不胜感激.

Any other thoughts on best practices and other potential IDE's would also be appreciated.

推荐答案

我推荐 Netbeans(显然是 Ruby 版)或 Jetbrain 的 RubyMine 超过 Aptana.我在尝试 Aptana 和 Ruby 时遇到了问题.Rubymine 仍处于公开预览发布状态,但在一个月左右发布时它将成为付费产品.它是由开发 IntelliJ IDEA 的同一个人开发的.Netbeans 实际上与 ruby​​ 和 rails 配合得很好,而且它是免费的.两者都允许您从 IDE 中执行 ruby​​ 并支持 rails.

I'd recommend Netbeans (Ruby Edition obviously) or Jetbrain's RubyMine over Aptana. I've had issues with Aptana and Ruby when I tried it. Rubymine is still in public preview release status, but it will be a paid product when it's released in a month or so. It's developed by the same people who made IntelliJ IDEA. Netbeans actually works very well with ruby and rails and it's free. Both allow you to execute ruby from within the IDE and have rails support.

我还发现 irb 非常有用,Netbeans 也允许您从 IDE 中运行 irb.代码完成和内联文档在开始时很有帮助.

I've also found irb very useful, Netbeans allows you to run irb from within the IDE as well. Having code completion and inline documentation helpful when starting out.

这篇关于使用 Aptana RadRails 创建普通 .rb 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆