问题描述
我是 Ruby 新手.我已经在 Windows 7 上安装了 Ruby on Rails.我访问了以下内容以选择合适的 IDE/Editor 来编写 Ruby 代码:
I am new in Ruby. I have installed Ruby on Rails on Windows 7. I visited the following to choose a suitable IDE/Editor for writing Ruby code:
http://rubyonrails.org/download
我找到了以下 Ruby 编辑器:
I found the following Editors for Ruby:
用于 Rails、RadRails、RubyMine、3rd Rail、用于 Ruby 的 Netbeans 的 VIM
VIM for Rails, RadRails, RubyMine, 3rd Rail, Netbeans for Ruby
我熟悉 Eclipse,因为我正在使用 Eclipse for java.我可以将 Eclipse 用于 Ruby 吗?如果是这样,Eclipse 中的 Ruby 项目需要什么配置?
I am familiar with Eclipse as I am using Eclipse for java. Can I use Eclipse for Ruby? If so, what configuration is necessary in Eclipse for Ruby project?
推荐答案
为了节省你的一些跑腿,在 Eclipse 中:
To save you some legwork, in Eclipse:
- 转到帮助 -> 安装新软件...
- 点击添加(弹出窗口右上角)
- 输入名称,如RadRails2"
- 输入位置为 http://download.aptana.com/tools/radrails/plugin/install/radrails-bundle(对于完整的 Aptana studio Studio 3,请输入 http://download.aptana.com/studio3/plugin/install)
- 点击确定
- 重启 Eclipse
- 转到窗口 -> 首选项.您将在左侧面板中看到 Ruby 已入伍
- Go to Help -> Install New Software...
- Click add (top right of popup)
- Enter a Name like "RadRails2"
- Enter the location as http://download.aptana.com/tools/radrails/plugin/install/radrails-bundle (for the full Aptana studio Studio 3, instead enter http://download.aptana.com/studio3/plugin/install)
- Click ok
- Restart Eclipse
- Go to Window -> Preferences. You will see Ruby is enlisted at left panel
你已经完成了......
You are done...
现在,当您使用新建"菜单时,您可以选择创建一个 Ruby 项目(除其他外).
Now when you use the "New" menu, you'll have the option to make a Ruby project (among other things).
这篇关于如何将 Eclipse 用于 Ruby on Rails (RoR)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!