views:

586

answers:

6

Are there any programs or IDEs that support refactoring for Ruby or RoR?

+2  A: 

I believe net-beans and eclipse both support some refactoring within their 'ruby-mode' - also the emacs code browser (ECB) and the various ruby support tools (e.g. rinari) for emacs have some support.

mmaibaum
+2  A: 
A: 

There's also 3rdRail from CodeGear (from Delphi fame). The only catch is that it's not free.

RFelix
+1  A: 

Aptana has some simple refactoring tools. I often extract into partials and they have a simple shortcut for pulling things out, creating a file and inserting the right call to the partial. Not the most amazing ever but it's useful

A: 

I've used the refactoring in netbeans. I didn't find it that much more useful than find and replace.

srboisvert
+5  A: 

The best refactoring tool is good test coverage. If your tests cover your code and they all past you can just make whatever changes you want and the tests will find any dependencies you have broken. This is the main reason why IDE-based refactoring tools are less prevalent in Ruby than elsewhere.

domgblackwell