From: 7stud -- Date: 2008-02-25T16:03:46+09:00 Subject: Re: NoMethodError: private method `to_date' Sukeerthi Adiga wrote: > Loading development environment. >>> Time.now.to_date > Time.now.to_date > NoMethodError: private method `to_date' called for Mon Feb 25 12:04:10 > +0530 2008:Time > from (irb):1 >>> > > earlier it use to work fine.. > can any one help me whats the prob is? > > in terminal it shows like this.. > > sukeerthi@sukeerthi-desktop:~$ ruby -v > ruby 1.8.6 (2007-06-07 patchlevel 36) [x86_64-linux] > sukeerthi@sukeerthi-desktop:~$ $ ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0] puts Time.now.to_date --output:-- undefined method `to_date' for Sun Feb 24 23:59:42 -0700 2008:Time (NoMethodError) And, pickaxe2 lists no method in the Time class called to_date. -- Posted via http://www.ruby-forum.com/.