How to use Eclipse for Ruby on Rails (RoR)
Asked Answered
I

5

32

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

I found the following Editors 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?

Interpreter answered 11/9, 2012 at 9:43 Comment(3)
Have you tried the instructions here ? http://www.easyeclipse.org/site/distributions/ruby-rails.htmlShanelleshaner
This is an old project. They do not support it anymoreBlythebm
Is there any special IDE for Ruby on Rails?Interpreter
K
26

To save you some legwork, in Eclipse:

  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...

Now when you use the "New" menu, you'll have the option to make a Ruby project (among other things).

Katydid answered 24/7, 2013 at 1:57 Comment(6)
OP, you've now answered your own question and edited mine. Please also accept my answer and upvote it if you have found it helpful, as the other answer is no longer valid.Katydid
I cannot install it from your address because it seems the package needs other aptana things.Velocity
@BryanWolfford I am using Kepler and it is nearly impossible to use it with Rails. The text shifts around and is never properly aligned. Is there an alternative for eclipse?Probabilism
download.aptana.com/tools/radrails/plugin/install/… does not work in Luna, it reports Aptana Core missingNeedlecraft
I confirm this solution no longer work on Luna. Is there any other way of installing RadRAils?Melson
what's the diff between the radrailis-bundle and aptana studio studio 3?Kappenne
B
4

You need to install aptana sudio eclipse plugin and radrails will be included.

refer to this Cannot Install Aptana plugin on Eclipse 4.2

Barghest answered 10/10, 2013 at 12:36 Comment(0)
N
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.

Np answered 21/1, 2015 at 7:7 Comment(0)
M
2

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:

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.

With this setup Eclipse runs considerably lighter than with Aptana.

Mazda answered 1/7, 2015 at 9:52 Comment(0)
G
0

Ruby Development Tools, http://marketplace.eclipse.org/content/ruby-dltk, is no longer available on marketplace.eclipse.org.

Gumboil answered 6/8, 2020 at 6:24 Comment(1)
Indeed, it was deprecated in favour of github.com/PyvesB/eclipse-solargraphIncoordinate

© 2022 - 2024 — McMap. All rights reserved.