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

2023-08-20Java开发问题
2

本文介绍了如何将 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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

Eclipse 在尝试启动 Android 应用程序时卡住了
Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)...
2024-08-25 Java开发问题
14

Eclipse:无法初始化监视器线程:无法建立环回连接
Eclipse: Failed to initialize Monitor Thread: Unable to establish loopback connection(Eclipse:无法初始化监视器线程:无法建立环回连接)...
2024-08-25 Java开发问题
4

Eclipse-找不到JDK
Eclipse- JDK not found(Eclipse-找不到JDK)...
2024-08-25 Java开发问题
6

如何让 Eclipse 在 Windows 7 任务栏中表现良好?
How to make Eclipse behave well in the Windows 7 taskbar?(如何让 Eclipse 在 Windows 7 任务栏中表现良好?)...
2024-08-25 Java开发问题
9

即使 JAVA_HOME 路径正确,Tomcat 也没有运行
Tomcat is not running even though JAVA_HOME path is correct(即使 JAVA_HOME 路径正确,Tomcat 也没有运行)...
2024-08-25 Java开发问题
6