From: Jim Weirich Date: 2004-07-27T19:59:42+09:00 Subject: Re: Can't get rails to work Fredrik Jagenheim wrote: > Just trying to do the simple examples seen in both the tutorial and video. > > But when I try to access my newly created controller > (./scripts/new_controller Foo) in the browser by accessing > 'http://rails/foo/' I get this: > > /home/fredde/projects/ruby/rails/public/../vendor/railties/../../vendor/railties/dispatcher.rb:32:in > `rescue_errors': undefined method `info' for nil:NilClass > (NoMethodError) > from /home/fredde/projects/ruby/rails/public/../vendor/railties/../../vendor/railties/dispatcher.rb:14:in > `initialize' > from /home/fredde/projects/ruby/rails/public/dispatch.cgi:5:in `new' > from /home/fredde/projects/ruby/rails/public/dispatch.cgi:5 > [Tue Jul 27 02:00:06 2004] [error] [client 127.0.0.1] Premature end of > script headers: /home/fredde/projects/ruby/rails/public/dispatch.cgi > > For some reason 'ActionController::Base.logger' is nil. I don't see > anywhere it is initialized either so I'm not sure what I'm missing. Check the permissions on your log directory and log file and make sure that the www-data user (or whatever apache runs as) can write to those directories. This stymied me for a while as well. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)