Re: Little problem.
Shugo Maeda <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi, At Sat, 3 Jan 2004 23:37:04 +0100, Federico Granata <[email protected]> wrote: > 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' It seems that SQLite::Database.open doesn't exist and Kernel#open was called instead. Is SQLite::Database.open defined in sqlite really? Shugo