Forum: Ruby Requiring with eRuby problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E7d149fd2a534eb85f9aab457e1a62bd?d=identicon&s=25 Donovan Mueller (donut2d)
on 2007-05-14 08:16
(Received via mailing list)
I have eRuby running on my Mac with a local dev server using MAMP

Whenever I try to 'require' a file other than stuff life 'cgi' I get a
500 Internal Server Error when trying to load the page in my browser.
So "require 'cgi'" works fine. But "require 'anylocalfile'" doesn't

I'm using a .htaccess file to enable eRuby with the eRuby binary in
Apache's cgi-bin directory with the following in the .htaccess:

AddHandler cgi-script .rb
Action application/x-httpd-ruby /usr/local/bin/ruby

DirectoryIndex index.rhtml index.html index.htm
AddHandler application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

.rhtml files work just fine until I try to include one of my own .rb
files within the htdocs root.

Any ideas?
This topic is locked and can not be replied to.