For the Rails work I am doing in my spare time, I tried RadRails a couple of times in the past. Everytime I looked at it I found it to be promising, but it still didn’t convince me to get away from using the commandline and a simple text editor.
Well, last night I gave it another try, and this time it looked quite complete to me. I already had Eclipse 3.2.1 on my disk, and after a short installation of RadRails I was ready to go.
However, there was one thing I had to solve, and this is mainly the reason why I am posting this: Rake didn’t work. Whatever I tried, the error messages kept coming. Some tips, found at the RadRails site, said that I should use the rake script and not rake.bat. The only problem was – there is only rake.bat on my system.
The solution is quite simple, but I would like to document it here for future reference. I simply copied the ruby part of rake.bat into a new rake file in ruby’s bin folder. Then I pointed the eclipse configuration to the newly created rake script. En voila, rake is running fine in Eclipse!