RubyMine, an IDE for Ruby, Rails and so much more.

Published on Mar 09, 2009

Ok, first let me be really clear, I’m not a JetBrains fan boy.
Yes, I use ReSharper and yes, I also use TeamCity at home as my Continuous Integration server for some of my projects.

I also use Cruise Control.Net and Jenkins CI in other projects (sometimes both in the same project, to do different things)

But the guys from JetBrains do really good products, ex: TeamCity is ,IMHO, the most friendly CI server of the three to set up and ReSharper makes practicing TDD or BDD not just possible but highly enjoyable.

So when I came across RubyMine a few months ago I decided to give it a try. I have been using different IDE‘s and Editors on my adventures into the Ruby world but even when I found some of them really good I never really feel at home.

NetBeans with Ruby support was the one that provided the best IDE experience for me so far, and for text editors I mostly used Scite that comes with Ruby. (I do all my programming on a PC so no TextMate for me and for whatever reason e didn’t click with me. I also tried PSPad, my favorite text editor for everything else, but it didn’t work with ruby. I guess my very basic knowledge of the language didn’t help either.

So here are some of the features I like on RubyMine some of them shared by NetBeans.

Note:I’m not giving out on NetBeans since it’s free and has support for PHP.

Easy code navigation.

From a view clicking in the A icon will open the proper controller and position the cursor in the right action.

ScreenHunter_01 2009-03-08 22.33.43

Now if you are in a controller and click in the View icon besides the action you will navigate to the view if it exist.

ScreenHunter_02 2009-03-08 22.34.22

If the views is not available yet RubyMine will open a prompt to create it.

ScreenHunter_03 2009-03-08 22.34.34

ScreenHunter_04 2009-03-08 22.34.48

Also some classes have a (dependencies?) icon beside its declaration that help you to browse to base classes and partial implementations

ScreenHunter_06 2009-03-08 22.42.26

Code hints and code analysis

The familiar (for ReSharper users) yellow light bulb, shows up in some cases giving you hints on how to improve your code. In this case I positioned the cursor on the ‘new’ string and the id understands that I’m referring to the new action, so it suggest to use a symbol instead.

ScreenHunter_05 2009-03-08 22.41.49

On the right hand you have hints (yellow, red) about your code. Even on html code.

ScreenHunter_09 2009-03-08 22.43.13

ScreenHunter_08 2009-03-08 22.43.03

In this case makes the sensible suggestion of get rid off the B tag and replace with some CSS or the STRONG tag:

ScreenHunter_10 2009-03-08 22.55.14


Of course you have some Refactorings available for you.

ScreenHunter_11 2009-03-08 22.57.20

Code analysis:

ScreenHunter_12 2009-03-08 22.57.32

And find usages:

ScreenHunter_13 2009-03-08 22.57.48

ScreenHunter_14 2009-03-08 22.58.03


This are just some of the features, for a complete list visit the JetBrains site, most of them also work in JavaScript files and html files, so you can use them in other projects not just Ruby ones.