[Nitro] Og in glycerin is broken now.

Fang Sun nusgnaf at gmail.com
Sun Aug 27 04:23:49 EDT 2006

Hello, everyone
For some reason, Og cannot enchant class now.
This is og 0.31
irb(main):001:0> require 'og'
=> true
irb(main):002:0> class U ;property :name, String; end
=> U
irb(main):003:0> Og.start
 INFO: Og uses the Sqlite store.
 INFO: Created table 'ogu'.
with glycerin...
irb#1(main):001:0> require 'glycerin'
=> true
irb(main):002:0> require 'og'
=> true
irb(main):003:0> class U; attr_accessor :name, String;end
=> nil
irb(main):007:0> Og.start
 INFO: Og uses the Sqlite store.
=> #<Og::Manager:0xb77f1a2c @options={:adapter=>:sqlite,
:name=>"data", :called_by_og_setup=>true}, @entities={},
irb(main):008:0> u = U.new.name = "haha"
=> "haha"
irb(main):009:0> u.save!
NoMethodError: undefined method `save!' for "haha":String
        from (irb):9
So Og cannot capture user defined class.How to debug this?

More information about the Nitro-general mailing list