[Nitro] Og examples

itsme213 itsme213 at hotmail.com
Wed Nov 23 23:50:13 EST 2005


Where can I find some basic examples of using Og with Kirbybase or 
Filesystem store?

I tried the below and it dies on the r.save.
c:/ruby/lib/ruby/gems/1.8/gems/og-0.25.0/lib/og/entity.rb:376:in 
`method_missing': undefined method `ogmanager' for B:Class (NoMethodError)
 from c:/ruby/lib/ruby/gems/1.8/gems/og-0.25.0/lib/og/entity.rb:14:in `save'
 from C:/des/desktop/citi/idem/domain model/role_model.rb:22
Process ruby exited with code 1

Also there are errors in the testcases included in og.

Thanks!
-----------------------------------

require 'og'

class A; end

class B
 property :domain, A
end

db = Og::Store.new(
    :database => 'test',
    :adapter  => 'kirby'
)

r = B.new

o = A.new

r.domain = o

puts r.domain

r.save
o.save



More information about the Nitro-general mailing list