[Nitro] spark and update_time

manveru ulmo at valaraan.de
Tue Sep 6 13:09:40 EDT 2005


hi list,

now, almost a tradition, my daily problem :)

i noticed that in spark every page wich contains:

#{@revision.update_time.to_s(:db)}

fails to render, i'm not sure why, not even sure what that code does, 
but i think that it wants to get the latest update_time in a string out 
of :db
i have added the error-messages at the end of the post, the problem 
seems clear - to_s doesn't want any arguments, and i really don't think 
it is supposed to need that information, as the revision should know by 
itself where to get that information...
maybe it's just some problem with mysql here... however, i can live 
without the date of the last update for the meanwhile, just wanted to 
post that here so the problem gets known

so long...
manveru


-------------------------------------------
ERROR: Error while handling '/diff'.
ERROR: wrong number of arguments (1 for 0)
  template/diff.xhtml:79:in `to_s'
  template/diff.xhtml:79:in `diff_template'
  (eval):10:in `diff_action'
  
/usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/controller.rb:163:in 
`method_missing'
  /usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/render.rb:124:in 
`render'
  
/usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/adapter/webrick.rb:125:in 
`do_GET'
  /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:172:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:161:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:161:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
  
/usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/adapter/webrick.rb:47:in 
`start'
  
/usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/server/runner.rb:282:in 
`invoke_server'
  
/usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/server/runner.rb:248:in 
`invoke'
  /usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/server.rb:125:in `run'
  /usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro.rb:65:in `run'
  run.rb:76
  LOGGED FROM: 
/usr/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/render.rb:180:in 
`log_error'
----------------------------------------------



More information about the Nitro-general mailing list