[Nitro] date_select

Emmanuel Piperakis epiperak at softlab.ece.ntua.gr
Tue Nov 1 00:43:40 EST 2005


Hi all,
I think I found something here if you object has a property Date
and you try to fill the object you get the following... fill does not 
convert the hash to date correctly? (does it only convert to Time?)

Thanx ;-)


undefined method `year' for {"month"=>"11", "day"=>"1", 
"year"=>"2005"}:Hash

/usr/lib/ruby/gems/1.8/gems/og-0.24.0/lib/og/store/sql.rb:34:in `date'
(eval):5:in `og_insert'
/usr/lib/ruby/gems/1.8/gems/og-0.24.0/lib/og/store.rb:121:in `save'
/usr/lib/ruby/gems/1.8/gems/og-0.24.0/lib/og/entity.rb:16:in `save'
./src/controller.rb:164:in `project_save'
(eval):13:in `project_save_action'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro/controller.rb:104:in 
`method_missing'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro/render.rb:125:in 
`render'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro/adapter/webrick.rb:142:in 
`do_POST'
/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro/adapter/webrick.rb:53:in 
`start'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro/server/runner.rb:282:in 
`invoke_server'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro/server/runner.rb:248:in 
`invoke'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro/server.rb:123:in `run'
/usr/lib/ruby/gems/1.8/gems/nitro-0.24.0/lib/nitro.rb:65:in `run'
run.rb:41

Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
  To teach is Primal, to Rule is Sin}



More information about the Nitro-general mailing list