I'm begining with eRuby and I have a difficulty with a chunk of my code. I
have my index.rhtml wich contains a require, a .rb that is located in
Ressources/Ruby/RDForm.rb. When I run index.rhtml through eRuby, it goes
through perfectly fine but when I try to access it through Apache, I get
this error:
<-- Error -->
[Sat Oct 23 18:31:18 2004] [error] mod_ruby:
/home/http/godsiocorp/index.rhtml:8: uninitialized constant
#<Module:0x4120f22c>::RDForm (NameError)
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from (eval):117
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `eval_string_wrap'
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `run'
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:72:in `handler'
Here is the chunk in index.rhtml that causes some problems :
How odd. Perhaps a path thing? Are there multiple (different)
copies of RDForm on you system? Or maybe permissions. What happens if
you require a file that apache can't access? Does it complain?
-- Markus
···
On Sat, 2004-10-23 at 15:46, Étienne Brouillard wrote:
Hi!
I'm begining with eRuby and I have a difficulty with a chunk of my code. I
have my index.rhtml wich contains a require, a .rb that is located in
Ressources/Ruby/RDForm.rb. When I run index.rhtml through eRuby, it goes
through perfectly fine but when I try to access it through Apache, I get
this error:
<-- Error -->
[Sat Oct 23 18:31:18 2004] [error] mod_ruby:
/home/http/godsiocorp/index.rhtml:8: uninitialized constant
#<Module:0x4120f22c>::RDForm (NameError)
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from (eval):117
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `eval_string_wrap'
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `run'
[Sat Oct 23 18:31:18 2004] [error] mod_ruby: from
/usr/lib/ruby/1.8/apache/eruby-run.rb:72:in `handler'
Here is the chunk in index.rhtml that causes some problems :