[Nitro] Weird one, probably simple

George Moschovitis george.moschovitis at gmail.com
Wed Nov 9 03:21:29 EST 2005


why dont you try a simple:

require 'og'

I run my apps like this:

ruby -rubygems app.rb

or even better add -rubygems to RUBYOPT

-g.


On 11/9/05, David Legard <dalegard at gmail.com> wrote:
> I have been happily running Og on one system, and had to move my application
> to a new system.
>
> Rubygems installed Og 0.24.0 rather than 0.23.0 as on the previous system.
>
> Now, I run the test.
>
> require 'rubygems'
> require_gem 'og'
> db = Og.setup(
>    #:destroy  => false,
>    :store    => :mysql,
>    :name     => 'database',
>    :user     => 'myuser',
>    :password => 'mypassword'
>    )
>
> And I get the error: ogtest.rb:3: uninitialized constant Og (NameError).
>
> What the.....?
>
> David Legard.
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>
>


--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list