[Nitro] Help! undefined method `save'

James Britt jamesUNDERBARb at neurogami.com
Fri Mar 18 23:43:26 EST 2005


I'm trying to build an Og app, following the RubyGarden tutorial, and 
when I try to save my object I get this error:

  undefined method `save'

#-----------------------------
#!/usr/bin/env ruby
require 'og'

  db = Og::Database.new(
     :database => 'tag_devel',
     :adapter  => 'mysql',
     :user     => 'root',
     :password => 'password'
   )




class Tag
   prop_accessor :name,      String
   prop_accessor :context,   String
   prop_accessor :creator,   String
   prop_reader :last_update,   Time

   def initialize(  )
       yield self if block_given?
       @last_update = Time.now
   end
end



tag = Tag.new

tag.name = "Database"
tag.save
# undefined method `save' for #<Tag:0x2ec9070> (NoMethodError)

#-----------------

What might the problem be?

nitro-0.13.0
og-0.13.0

(from gems)

ruby 1.8.2, 1-click on Win2K


Thanks,

James Britt

-- 

http://www.ruby-doc.org
http://www.rubyxml.com
http://catapult.rubyforge.com
http://orbjson.rubyforge.com
http://ooo4r.rubyforge.com
http://www.jamesbritt.com



More information about the Nitro-general mailing list