From: Kent Sibilev Date: 2004-12-09T04:47:02+09:00 Subject: Re: Apache Request Object Method Undefined? document_root is the method of Apache::Server. Try request.server.document_root Cheers, Kent. On Dec 8, 2004, at 11:52 AM, ironsoup wrote: > Hello all. I'm fairly new to Ruby/mod_ruby and while running a few > tests I have run into this error: > > ----------------------------------------------------------------------- > ------- > /home/http2/public_html/randomimg.rhtml:7: undefined method > `document_root' for # (NoMethodError) > from (eval):53 > from /usr/local/lib/ruby/1.8/apache/eruby-run.rb:116:in > `eval_string_wrap' > from /usr/local/lib/ruby/1.8/apache/eruby-run.rb:116:in `run' > from /usr/local/lib/ruby/1.8/apache/eruby-run.rb:72:in `handler' > ----------------------------------------------------------------------- > ------- > > Isn't document_root a valid method for the Apache request object? > Greatly appreciate any feedback. Thanks! > >