Hi, I’m having trouble running my application with mod_ruby on Apache2.
I’ve set them up like this:
httpd.conf:
RubyRequire apache/ruby-run RubySafeLevel 0 SetHandler ruby-object RubyHandler Apache::RubyRun.instancepublic/.htaccess:
RewriteRule ^(.*)$ dispatch.rb [QSA,L]
And when I run the app I get the awful error msg:
“Application error
Rails application failed to start properly”
And the Apache logs show me this:
[Tue Sep 05 18:22:01 2006] [error] mod_ruby: error in ruby
[Tue Sep 05 18:22:01 2006] [error] mod_ruby:
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
const_missing': uninitialized constant ADDITIONAL_LOAD_PATHS (NameError) [Tue Sep 05 18:22:01 2006] [error] mod_ruby: from /var/rails/instrumenta/public/dispatch.rb:12 [Tue Sep 05 18:22:01 2006] [error] mod_ruby: from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in
load’
[Tue Sep 05 18:22:01 2006] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler’
Please help, I’m stuck and need to get this working asap.
Thanks a lot.
-Ofir