[jruby-user] Re: Error 'uninitialized constant Arel::Visitors::SQLite' with rails

David Bennett <[email protected]>
Newsgroups gmane.comp.lang.jruby.user
Message-ID <[email protected]>
After preliminary experimentation, rails 3 is off the table. I wrote 
this code about 5 years ago when Rails 2.3 was the latest and greatest, 
and the main reason to run it now is to move it somewhere else. I'm not 
a big rails fan, but I do like ruby as a language.

I would really prefer to keep Netbeans 7.4 and the Jruby that came with 
it. I'm using them for other (non-rails) projects.

After your previous helpful message I came to the conclusion that the 
jdbc adapter was the place to focus.

To be honest, I don't care what database. It was originally MySql but 
that's really too heavyweight. I use sqlite for other things so it's 
familiar, but H2 is OK too. Or Mssql. Whatever.

I tried to set a version for the jdbc gem. No, I don't have bundler and 
I don't have a gemfile. What I have is

    Rails::Initializer.run do |config|

So I loaded the gem and tried

  config.gem "activerecord-jdbcsqlite3-adapter", :version => '1.0.3'

Which produced the error:

>NoMethodError: undefined method `name' for "actionmailer":String
C:/Users/david/AppData/Roaming/NetBeans/7.4/jruby/lib/ruby/gems/shared/gems/rails-2.3.8/lib/rails/gem_dependency.rb:275:in 
`=='

Not obvious how the two are connected, but I guess that's what the 
debugger is for.

Your experiment (a) reproduce the problem and (b) suggested this is the 
right fix. I have a few things to try now at least. Thanks for the help.

-- 
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.