From: Ian Macdonald Date: 2003-01-28T06:14:04+09:00 Subject: getting eRuby to run under mod_ruby Hi, I have mod_ruby running fine for regular Ruby scripts, but attempting to call eRuby from mod_ruby yields this error: [Mon Jan 27 10:23:59 2003] [error] mod_ruby: error in ruby (eval): uninitialized constant ERubyRun at Apache (NameError) from ruby:0:in `value' I found a couple of messages in the archives from people with the same problem, but no solution other than a pasted config from someone for whom it worked. My config seems to conform to the instructions: RubyRequire apache/ruby-run Alias /mod_ruby /var/www/ruby # Execcute files under /ruby as Ruby scripts SetHandler ruby-object RubyHandler Apache::RubyRun.instance Options +ExecCGI # Execute *.rbx files as Ruby scripts SetHandler ruby-object RubyHandler Apache::RubyRun.instance # handle *.rhtml as eruby files. SetHandler ruby-object RubyHandler Apache::ERubyRun.instance From the error, it would appear that eRuby is being invoked. It's just that something isn't being initialised correctly. This is with Ruby 1.6.8, eRuby 1.0.2 and mod_ruby 1.0.4. Any ideas? As usual, I feel like I must be missing something obvious. Ian -- Ian Macdonald | The best portion of a good man's life, his ian@caliban.org | little, nameless, unremembered acts of | kindness and love. -- Wordsworth | |