Little problem.
Federico Granata <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I try to use the SQLite-Ruby module in a eruby file :
<% require 'sqlite'
db = SQLite::Database.open("files.db",0)
%>
<html>
....
but all I get is a "nice" error in the file error_log (apache) :
[Sat Jan 3 23:16:34 2004] [error] mod_ruby: error in ruby
/tmp/combo.rhtml.806.0:8: private method `open' called for
SQLite::Database:Class (NoMethodError)
from /opt/lib/ruby/1.8/apache/eruby-run.rb:113:in `load'
from /opt/lib/ruby/1.8/apache/eruby-run.rb:113:in `run'
from /opt/lib/ruby/1.8/apache/eruby-run.rb:78:in `handler'
I think the problem is in httpd.conf but I can't solve it, can somebody help
me ?
Tanks from now (and sorry for my english).