Wednesday, January 16, 2008

Getting Ruby on Rails up and running in Eclipse

So I'm running on a MacBook running Leopard and wanted to do some Ruby on Rails development using Eclipse. Here is what I did.

  1. Follow the tutorial for installing the base libraries for the following components
    • Ruby
    • RubyGems
    • Ruby on Rails
    • FastCGI
    • You will need MySQL, but this tutorial is OSX specific
    • MySQL Native Bindings
  2. Download and install Eclipse.
  3. Open Eclipse and install the following plugins.
    • Aptana plugin
    • Ruby Development Tools plugin (pick the release version) (OPTIONAL as of 6/9/2008)
    • Subclipse plugin
    • Somewhere in the process I ran into a problem involving Mylyn. Well go ahead and install that as well.
  4. Open Eclipse, open the Help drop down and click on Aptana Start Page. In the center column you will see the Aptana Ruby on Rails plugin. Go ahead and install it.
  5. Now you should easily be able to create a Rails project within Eclipse.

No comments: