Posted by cnruby Sat, 20 Oct 2007 09:56:00 GMT

Ruby语言:错误信息to_date说明

  • 系统环境:
    Debian Sarge(3.1)
    Ruby 1.8.6
  • 错误信息:
    NoMethodError (private method `to_date' called for...)
  • 使用Rails框架应用软件:
    Mehisto
  • 解决方案:在Rails框架软件配置文件your environment.rb最前面增加如下代码:
       class Time; public :to_date ;end #use the ruby-1.8.6 version
  • 参考资料:
    http://groups.google.de/group/ruby-talk-google/browse_thread/thread/7fba3bd6c9f07a51



________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
del.icio.us Digg | FURL | Yahoo! My Web 2.0 | Reddit | Blinklist | Fark

Posted in  | Tags , , , , ,