Trouble getting started
I'm running Mac OSX 10.4.
I downloaded the Rails environment from locomotive.raaum.org, as suggested in Chapter 1, and installed it to my Applications folder.
When I tried to execute the rails hello command in the Terminal, I got an error message: "rails: command not found" -- but I was able to create a "hello" application from the Locomotive GUI.
Then, in Terminal, I went to my "hello" directory and entered the command:
ruby script/generate controller App,
which produced the following error:
./script/../config/boot.rb:18:in `require': No such file to load -- rubygems (LoadError)
from ./script/../config/boot.rb:18
from script/generate:2:in `require'
from script/generate:2
This message doesn't mean a lot to me (maybe it will by the time I get to the end of the book...), but I gather that it can't find one of the files it needs to initialize the application. Evidently there's something wrong with the way I installed rails or the way I created the "hello" application. But I don't know what I did wrong, or what I can do to fix it.
Any suggestions?
|