Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Eclipse for Ruby on Rails (RoR)

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?

like image 745
Ripon Al Wasim Avatar asked Sep 11 '12 09:09

Ripon Al Wasim


People also ask

Can you use Eclipse for Ruby?

Eclipse is the most commonly used Java IDE. Ruby on Rails provides some plugins to use Ruby on Rails in Eclipse. Two such plugins are Ruby Development Tools and RadRails. Ruby Development Tools (RDT) and RadRails are open source Ruby IDEs for the Eclipse platform.


1 Answers

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

like image 132
Bryan Wolfford Avatar answered Oct 02 '22 08:10

Bryan Wolfford