Hi,
pretty standard way:
DataMapper.setup(
:default,
"sqlite3://#{Dir.pwd}/db/development.sqlite3"
)
Joc
On Sep 10, 11:26 pm, Chris <[email protected]> wrote:
> How are you calling DataMapper.setup()?
>
> On Sep 9, 11:10 am, Joc <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I'm trying to get DataMapper to run with JRuby & Sinatra.
>
> > I have updated to all the latest gems but keep getting the following
> > error:
>
> > com.sun.grizzly.jruby.rack.RackInitializationException: no such file
> > to load -- do_jdbc_internal
> > from /opt/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> > 31:in `require'
> > from /opt/jruby/lib/ruby/gems/1.8/gems/do_jdbc-0.10.0-java/lib/
> > do_jdbc.rb:4
>
> > the rest of the log is here if needed
>
> >http://pastie.org/611113
>
> > This is under the Glassfish server.
>
> > Bit stumped as to what to do next.
>
> > TIA,
>
> > Joc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---