Rails gives NameError for all command line methods such as generate or rake
问题 I'm a beginner with Rails and I've been trying to find out what in the world is going wrong here for the past few days but with absolutely no luck. I searched everywhere, but found nothing. Basically, when I run any sort of command line method, I will get a NameError. I have tried running this in different project directories as well that used to work. It seems that rails is just broken... I am running Win7-32bit using NetBeans 6.9.1 for editing files and cmd.exe for running rails console.