Help needed getting started with Mod_ruby

Hi,
I just installed mod_ruby under Windows XP, and I need some help getting
started with it.

I’m trying to run a simple script that goes like this:
<TEMP.RB>
require “TEMP2”
include TEMP2
myMethod

<TEMP2.RB>
module TEMP2
def myMethod
puts “it’s working!”
end
end

But I can’t seem to get the require working. It always gives me an
<undefined local variable or method ‘myMethod’> error.

Does anyone have experience with mod_ruby in windows? I read somewhere
that I need to restart Apache. But that didn’t seem to help.
Thanks very much
-Patrick

Patrick Li wrote:

Hi,
I just installed mod_ruby under Windows XP, and I need some help getting
started with it.

mod_ruby doesn’t seem to have been touched in over 2 years. If you want
Ruby in a website, your best bet is either Camping, Rails, or Merb/Rack
(in increasing order of complexity) with mod_rails, a.k.a. Phusion
Passenger (http://modrails.com/).