I suggest you to use sequel instead AR. The AR's support is patethic just
rigth now, due the Rails's changes.

http://sequel.rubyforge.org/rdoc/files/doc/opening_databases_rdoc.html


Thread name: "Problems with sqlite3 and JRuby" 
Mail number: 1 
Date: Sun, Aug 11, 2013 
In reply to: Thomas Seliger 
>
> Hello,
> 
> I am new to camping and I really like the zen of this framework. I would
> like to use it with Jruby and followed the instructions at
> http://camping.io/Camping-in-jRuby
> 
> But I am unsure, where I should put
> 
>   ActiveRecord::Base.establish_connection(
>     :adapter => 'jdbcsqlite3',
>     :database => "foo.sqlite3"
>   )
> 
> in the code.
> 
> I am doing my experiments with the simple example from the camping book,
> but I always get:
> 
>   Gem::LoadError at /
>   Specified 'sqlite3' for database adapter, but the gem is not loaded.
>   Add `gem 'sqlite3'` to your Gemfile.
> 
> No matter what I do, camping runs this part in lib/camping/server.rb
>       
>         if !Camping::Models.autoload?(:Base) && options[:database]
>           Camping::Models::Base.establish_connection(...
>             :adapter => 'sqlite3',
>             :database => options[:database]
>           )
>         end
> 
> Maybe you could point me into the right direction, I think that I am
> doing something wrong here.
> 
> Thanks!
> Tom
> _______________________________________________
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list

-- 
-------- Warning! ------------
100'000 pelos de escoba fueron
introducidos satisfactoriamente
en su puerto USB.




_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to