From: vor_lord@... Date: 2003-03-07T12:54:59+09:00 Subject: mod_ruby / eruby: intermittent failure to load file I am having a problem using mod_ruby and eruby. I just installed the latest stable tarballs of each on a Red Hat Linux 8.0 machine, and everything seemed to be working just fine. In combination with REXML this really seems to be the ticket for a simple web app I need. However, now I'm having an intermittent problem. The .rhtml file I am testing intermittently results in errors such as: /tmp/Viewer.rhtml.10484.0:79: undefined method `create_submit' for # (NoMethodError) from /opt/ictools/ruby/lib/ruby/1.7/apache/eruby-run.rb:113:in `load' from /opt/ictools/ruby/lib/ruby/1.7/apache/eruby-run.rb:113:in `run' from /opt/ictools/ruby/lib/ruby/1.7/apache/eruby-run.rb:78:in `handler' from ruby:0 I must admit I am a complete newbie at CGI and Apache in general (although not Ruby). I could be doing something incredibly stupid. I'm still basically at the playing around stage. These are the relevant pieces of the code: ..... html header stuff <% require 'cgi' require 'FormHelper' # a little helper class to generate some common forms etc I need include FormHelper # some CGI and form stuff here create_submit('blah', 'blah') %> ...... html footer stuff Because this error only happens about 1 out of 5 times I am completely baffled. I've configured the browser to not use a cache at all (to try and eliminate caching effects) yet it still fails in this manner. I've never had Ruby 'sometimes' complain about not being able to find a method. Style aside, what is wrong with the use of include above? Can anyone help? Thanks, Brett Williams