views:

25

answers:

1

I use RVM with ruby 1.9.2 and Rails. When I try to generate a scaffold for my Rails app, I get this error:

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- script/../config/boot (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/generate:2:in `<main>'

Is there something wrong with rubygems? RVM?

A: 

Make sure you are in the root of your rails application, not just wherever you happen to be when you open your terminal.

E.g. if you ran "rails new foo", that will create a directory called "foo" which contains all the files for your application. You need to be in the directory "foo" whenever you run a rails generator.

Paul Leader
Okay, just used cd to get to the app's root. Got the same error. I'm using Rails 2.3.2 by the way. Does this make it more clear what may be wrong?
585connor
Could you give us the exact command you are typing. It's rather hard to see what might be wrong if all we have is the error message.
Paul Leader