Today I was trying to add rails project to Netbeans 6.9,but suddenly there is a pop up window that said “Rake task fecthing failed” with bunch of other errors. After that, I tried go to my application folder and try to run the rake command
However I got this error
1 2 3 4 5
After a little bit research, I found that I have to uninstall my rake 0.9 and install 0.8.7 instead. So I ran this command :
Edited the gem file and added this code inside that file :
Last step is update the bundle
After that you can try run your rake command or import your project to Netbans, it’s should be fine.
UPDATE : It turns out that the problem is because I was using rake 0.9 and it’s break out all the installation.
You might want to install bundler if you encounter some errors related to Netbeans couldn’t find bundler setup. Another thing is you have to add gem path to your Netbeans ( Tools > Rubygems ) and add your gem path.
I am using rvm to install ruby and also rails. So I run this command to find gem path