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:
我是Ruby的新手。我在Windows 7上安装了Ruby on Rails。我访问了以下内容,为编写Ruby代码选择合适的IDE / Editor:
http://rubyonrails.org/download
http://rubyonrails.org/download
I found the following Editors for Ruby:
我找到了以下Ruby编辑器:
VIM for Rails, RadRails, RubyMine, 3rd Rail, Netbeans for Ruby
VIM for Rails,RadRails,RubyMine,3rd Rail,Netbeans for 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,因为我正在使用Eclipse for java。我可以将Eclipse用于Ruby吗?如果是这样,Eclipse for Ruby项目需要什么配置?
4 个解决方案
#1
27
To save you some legwork, in Eclipse:
为了节省一些腿部工作,在Eclipse中:
- Go to Help -> Install New Software...
- 转到帮助 - >安装新软件...
- Click add (top right of popup)
- 点击添加(弹出窗口右上角)
- Enter a Name like "RadRails2"
- 输入名称“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)
- 输入位置http://download.aptana.com/tools/radrails/plugin/install/radrails-bundle(对于完整的Aptana studio Studio 3,请输入http://download.aptana.com/studio3/plugin/安装)
- Click ok
- 点击确定
- Restart Eclipse
- 重启Eclipse
- Go to Window -> Preferences. You will see Ruby is enlisted at left panel
- 转到窗口 - >首选项。您将在左侧面板中看到Ruby已登记
You are done...
你完成了......
Now when you use the "New" menu, you'll have the option to make a Ruby project (among other things).
现在,当您使用“新建”菜单时,您可以选择制作Ruby项目(以及其他内容)。
#2
4
You need to install aptana sudio eclipse plugin and radrails will be included.
您需要安装aptana sudio eclipse插件,并且将包含radrails。
refer to this Cannot Install Aptana plugin on Eclipse 4.2
请参阅Eclipse 4.2上的无法安装Aptana插件
#3
4
I am using Eclipse Luna and installed Ruby(DLTK) 5.0 kepler from Eclipse Marketplace. I just imported my existing Rails project and seeing it working well with this. I am still exploring it. Hope that helps.
我正在使用Eclipse Luna并从Eclipse Marketplace安装了Ruby(DLTK)5.0 kepler。我刚刚导入了我现有的Rails项目并且看到它正常运行。我还在探索它。希望有所帮助。
#4
1
Aptana is largely dysfunctional on Luna and there is no wholesale alternative. However, combining the following plug-ins one gets a good degree of support:
Aptana在Luna上基本上是功能失调,没有批发替代品。但是,结合以下插件可获得很好的支持:
-
TM Terminal - provides local and remote command line sessions within Eclipse.
TM Terminal - 在Eclipse中提供本地和远程命令行会话。
-
Ruby Development Tools - the reference Ruby editor.
Ruby Development Tools - 参考Ruby编辑器。
-
JavaScript Development Tools - the base JavaScript editor.
JavaScript开发工具 - 基础JavaScript编辑器。
-
EGit - the Git integration plug-in.
EGit - Git集成插件。
I run rails
and rake
in the command line; I also debug through the command line (e.g. using binding.pry
). Editing .erb
files is the trickiest bit, the Ruby editor is ok, but in legacy code I have a great deal of JS in these files; in such cases I use the JavaScript Development tools.
我在命令行中运行rails和rake;我还通过命令行进行调试(例如使用binding.pry)。编辑.erb文件是最棘手的一点,Ruby编辑器还可以,但在遗留代码中我在这些文件中有大量的JS;在这种情况下,我使用JavaScript开发工具。
With this setup Eclipse runs considerably lighter than with Aptana.
通过这种设置,Eclipse的运行速度比Aptana轻得多。
#1
27
To save you some legwork, in Eclipse:
为了节省一些腿部工作,在Eclipse中:
- Go to Help -> Install New Software...
- 转到帮助 - >安装新软件...
- Click add (top right of popup)
- 点击添加(弹出窗口右上角)
- Enter a Name like "RadRails2"
- 输入名称“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)
- 输入位置http://download.aptana.com/tools/radrails/plugin/install/radrails-bundle(对于完整的Aptana studio Studio 3,请输入http://download.aptana.com/studio3/plugin/安装)
- Click ok
- 点击确定
- Restart Eclipse
- 重启Eclipse
- Go to Window -> Preferences. You will see Ruby is enlisted at left panel
- 转到窗口 - >首选项。您将在左侧面板中看到Ruby已登记
You are done...
你完成了......
Now when you use the "New" menu, you'll have the option to make a Ruby project (among other things).
现在,当您使用“新建”菜单时,您可以选择制作Ruby项目(以及其他内容)。
#2
4
You need to install aptana sudio eclipse plugin and radrails will be included.
您需要安装aptana sudio eclipse插件,并且将包含radrails。
refer to this Cannot Install Aptana plugin on Eclipse 4.2
请参阅Eclipse 4.2上的无法安装Aptana插件
#3
4
I am using Eclipse Luna and installed Ruby(DLTK) 5.0 kepler from Eclipse Marketplace. I just imported my existing Rails project and seeing it working well with this. I am still exploring it. Hope that helps.
我正在使用Eclipse Luna并从Eclipse Marketplace安装了Ruby(DLTK)5.0 kepler。我刚刚导入了我现有的Rails项目并且看到它正常运行。我还在探索它。希望有所帮助。
#4
1
Aptana is largely dysfunctional on Luna and there is no wholesale alternative. However, combining the following plug-ins one gets a good degree of support:
Aptana在Luna上基本上是功能失调,没有批发替代品。但是,结合以下插件可获得很好的支持:
-
TM Terminal - provides local and remote command line sessions within Eclipse.
TM Terminal - 在Eclipse中提供本地和远程命令行会话。
-
Ruby Development Tools - the reference Ruby editor.
Ruby Development Tools - 参考Ruby编辑器。
-
JavaScript Development Tools - the base JavaScript editor.
JavaScript开发工具 - 基础JavaScript编辑器。
-
EGit - the Git integration plug-in.
EGit - Git集成插件。
I run rails
and rake
in the command line; I also debug through the command line (e.g. using binding.pry
). Editing .erb
files is the trickiest bit, the Ruby editor is ok, but in legacy code I have a great deal of JS in these files; in such cases I use the JavaScript Development tools.
我在命令行中运行rails和rake;我还通过命令行进行调试(例如使用binding.pry)。编辑.erb文件是最棘手的一点,Ruby编辑器还可以,但在遗留代码中我在这些文件中有大量的JS;在这种情况下,我使用JavaScript开发工具。
With this setup Eclipse runs considerably lighter than with Aptana.
通过这种设置,Eclipse的运行速度比Aptana轻得多。