[Nitro] Og NameError
Matthew B Gardner
weather at speakeasy.net
Thu Dec 27 05:57:47 EST 2007
Just to update this, it looks like the Og module wasn't being declared before
module Og::Mixin in validation.rb.
require "facets/class_extension"
require "facets/inheritor"
module Og; end
module Og::Mixin
This fixed it for me...should this be posted to Ogden now?
Also, out of curiosity...I have a class Root that seems to be conflicting with
some other Root (which doesn't seem to be a class) elsewhere -- any idea
where/what it is? I couldn't find it and this wasn't a problem as of a few
weeks ago.
Thanks,
Matt
On Wednesday 26 December 2007 00:58, Matthew B Gardner wrote:
> Hello --
> I don't know if this still belongs here or should be sent to the Ogden
> list, but here goes:
>
> In my standalone application, these lines:
>
> require "rubygems"
> require "og"
>
> are producing:
>
> /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/validation.rb:4: uninitialized
> constant Og (NameError)
> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/main.rb:14
> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og.rb:1
> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in
> `require'
>
>
> In my nitro program, these lines don't have a problem and the application
> runs as expected:
>
> require "rubygems"
> require "nitro"; include Nitro
> require "og"
>
>
> This problem didn't exist as of a few weeks ago, likely before I installed
> Nitro and its dependencies via darcs.
>
> Thanks for any help,
> Matt
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
More information about the Nitro-general
mailing list