From: Ian Macdonald Date: 2003-01-28T08:52:49+09:00 Subject: Re: getting eRuby to run under mod_ruby On Tue 28 Jan 2003 at 06:14:04 +0900, Ian Macdonald wrote: > 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. > > # handle *.rhtml as eruby files. > > SetHandler ruby-object > RubyHandler Apache::ERubyRun.instance > It turned out I was missing the following line: RubyRequire apache/eruby-run Ian -- Ian Macdonald | All that glitters is not gold; all that ian@caliban.org | wander are not lost. | | |