Each time I try to run a brand new rails project in Netbeans I get the following error:
"Could not find rake-0.9.2 in any of the sources (Bundler::GemNotFound)"
What's happening?
P.S: I already did a bundle install and if I run "ruby s" from the console it wor开发者_如何学编程ks.
Thx.
Try to do the same manually, i.e from the terminal. First check which version of rails you are running, then try to bundle again from the terminal.
I suppose that your environment selected in netbeans does not recognize the latest rails gem but is using another one. Check with rails -v to see which version of rails you are running. If it is ok in the terminal, make sure you are running netbeans with the same user (ex. sudo or your user depending on the rvm config you have).
I had this problem several times with different IDE and every time it was because I was not using the proper user or not using the proper gemset in RVM (it's so easy to forget !)
After that it should be easy to resolve by choosing the right environment in the config of your project in netbeans or rubymine.
精彩评论