From: Ryan Pavlik Date: 2003-09-02T04:35:31+09:00 Subject: Re: can't use 'require' with mod_ruby? On Tue, 2 Sep 2003 04:25:04 +0900 mgarriss wrote: > When trying to execute this one line ruby cgi file with mod_ruby: > > raise 'postgres' unless require 'postgres' Two things: 1) mod_ruby keeps the same interpreter around for each invocation; you don't get a new one (so previously required stuff is still loaded) 2) require returns false if you try and require something that's already been required This should make what's happening clear, I hope. ;) -- Ryan Pavlik "Speaking in *very* broad terms... yes, your statement is correct." - 8BT