Hello fellow rubyists and railers,
I have some code that when run as CGI works as I want....
class AdminController < ApplicationController
def stats
require ''lib/stats''
Stats.do_this
end
end
I did this in normal CGI mode so lib/stats is only loaded when I am
performing a stats action...
However in FastCGI, this doesn''t work as expected. It works the first
time I call the stats action, but then the second time around it the
require statement returns nil, and it throws an exception saying the
constant "Stats" cannot be found.
If I change require to load it works correctly. Any ideas?
Thanks,
Zach