Re: [Rails] Re: Please, help to solve the problem

2012-08-06 Thread koulikoff
On Monday, August 6, 2012 5:42:49 AM UTC+3, hhuai wrote: require active_support/core_ext/date/acts_like miss this for acts_like_date? function. Yes, thank you very much -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: Please, help to solve the problem

2012-08-05 Thread Robert Walker
Dmitri K. wrote in post #1071361: $ ruby -v ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] $ irb 1.9.3p0 :001 require 'rubygems' = false 1.9.3p0 :002 require 'active_support/core_ext/date/calculations.rb' = true 1.9.3p0 :003 require 'active_support/core_ext/integer/time.rb'

[Rails] Re: Please, help to solve the problem

2012-08-05 Thread koulikoff
On Sunday, August 5, 2012 7:05:11 PM UTC+3, Ruby-Forum.com User wrote: Since this statement works fine if all of Rails is loaded then you must still be missing some required files. $ rails c Loading development environment (Rails 3.2.7) irb(main):001:0 Date.current = Sun, 05 Aug

Re: [Rails] Re: Please, help to solve the problem

2012-08-05 Thread soldier
require active_support/core_ext/date/acts_like miss this for acts_like_date? function. i think you can easy to this. require 'active_support/core_ext' puts 0.months.since Date.current On Mon, Aug 6, 2012 at 1:06 AM, koulikoff koulik...@gmail.com wrote: On Sunday, August 5, 2012 7:05:11 PM