如何将 Eclipse 用于 Ruby on Rails (RoR)

How to use Eclipse for Ruby on Rails (RoR)(如何将 Eclipse 用于 Ruby on Rails (RoR))

本文介绍了如何将 Eclipse 用于 Ruby on Rails (RoR)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 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:

  1. 转到帮助 -> 安装新软件...
  2. 点击添加(弹出窗口右上角)
  3. 输入名称,如RadRails2"
  4. 输入位置为 http://download.aptana.com/tools/radrails/plugin/install/radrails-bundle(对于完整的 Aptana studio Studio 3,请输入 http://download.aptana.com/studio3/plugin/install)
  5. 点击确定
  6. 重启 Eclipse
  7. 转到窗口 -> 首选项.您将在左侧面板中看到 Ruby 已入伍
  1. Go to Help -> Install New Software...
  2. Click add (top right of popup)
  3. Enter a Name like "RadRails2"
  4. 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)
  5. Click ok
  6. Restart Eclipse
  7. 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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:如何将 Eclipse 用于 Ruby on Rails (RoR)

基础教程推荐