Help needed getting started with Mod_ruby

P

Patrick Li

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
 
J

Joshua Ballanco

Patrick said:
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/).
 

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

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,218
Latest member
JolieDenha

Latest Threads

Top