Develop Rails apps with NetBeans 6.5 IDE

本文分享了作者从寻找Rails集成开发环境(IDE)到最终选择NetBeans的过程。作者最初尝试了SciTE等轻量级工具,但这些工具缺少一些必要的功能。在朋友的推荐下,作者开始使用NetBeans,并对其功能进行了详细介绍。尽管安装过程中遇到了一些小问题,如默认中文界面,但通过添加启动参数解决了这一问题。此外,NetBeans还提供了多种便利的功能,包括代码补全、快速访问Rails控制台等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Develop Rails apps with NetBeans 6.5 IDE

I have been looking for a Rails IDE for long.  I used SciTE that comes with Ruby, but it really bothered me for the lack of a file tree explorer, and I hate to switch among many windows – explorer, console, MySQL admin, etc.  I tried some other free yet simple tools as well, though the pain is still there.  Among those I tried, RoRED is outstanding on Windows – if you are looking for something lightweight but convenient, try it yourself.

I heard NetBeans for some time, but I thought it would be a monster to play with – slow, and full of features that I would rather do it by command line than learning how to find one.  Last week I saw a friend was using it, and I decided to give it a try. 

I downloaded the Ruby edition (an optimized version without the horrible Java stuff).  The installation ran pretty smoothly, except for one thing – The UI appeared to be Chinese by default, as I am using Chinese Windows.  It spent me a half hour to fix it – add “--locale en:US” to the startup command.  I hope NetBeans guys could give an option in menu or ask for UI language during installation.  Nobody I know is using Chinese UI in development even in China – all terms become strange after translation.

One worry before I tried NetBeans was that I do not want to use JRuby.  Fortunately I found an option in menu to choose Ruby platform, and it took only several clicks to pick my favorite Ruby 1.8.6, good.  Then I imported my current Rails app, by clicking “create Rails project” and feed it my project folder.  Everything was running fine.

Soon I was bothered how to open the Rails console.  After some random searching, I found they are all in the right-click menu of the project root folder – migrations, generators, consoles, and more common tasks.

In coding, I think the best thing is code completion.  I found many new parameters of the methods seem familiar but never thought that they were upgraded with more power.  Now the windows for extra tools like MySQL admin, SVN client, web servers are gone, I got a neat environment to code. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值