ModRuby Init Handler

V

veejar.net

Hello,

Apache 2.2.4
Ruby 1.8.6
mod_ruby 1.2.6

I try to use RubyInitHandler:

=========================
..htaccess
==========================
RubyRequire myhandlers.rb

<Files *.html>
SetHandler ruby-object

RubyInitHandler MyInitHandler.instance
</Files>


==========================
myhandlers.rb
===========================

require 'singleton'

class MyInitHandler
include Singleton

def init( r )
raise 'in init'
end
end

===============================

1. Method "init" of my handler was not be called. Why?
2. I try to write wrong class name for RubyInitHandler, and also no
error:
RubyInitHandler _____MyInitHandler.instance
3. RubyFixupHandler works! All is OK.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top