[Nitro] Og NameError
Matthew B Gardner
weather at speakeasy.net
Fri Dec 28 06:11:26 EST 2007
Hello --
On Thursday 27 December 2007 23:47, Trans wrote:
> On Dec 27, 8:32 am, Matthew B Gardner <weat... at speakeasy.net> wrote:
> > Caught NameError: undefined local variable or method `attributes' for
> > YAML::YPath:Class
> >
> > /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/util/ann_attr.rb:51:in
> > `serializable_attributes'
> > /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/manager.rb:192:in
> > `manageable?'
> > /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/manager.rb:222:in
> > `manageable_classes'
> > /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/manager.rb:218:in
> > `manageable_classes'
> > /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/manager.rb:239:in
> > `manage_classes'
> > /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/main.rb:192:in
> > `setup'
>
> I though I already fixed this, but maybe George hasn't had the chance
> to apply the patch. The solution is simply that #attributes should be
> #instance_attributes.
>
> T.
Thanks for the reply -- I fixed the issue there and then another that popped
up in sql.rb as well. However, more problems arose once I got my application
running -- searching for data in a table was giving incorrect results and
saving an object was trying to save it to its parent's table. Also, the
parent table had fields which it shouldn't have...fields declared only in
another child (not the same child that I encountered the saving problem
with). Are these problems related to the pending patch?
Thanks again,
Matt
More information about the Nitro-general
mailing list