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 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 2012
>> irb(main):002:0> 0.months.since Date.current
>> => Sun, 05 Aug 2012
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>
>
> Yes, in rails it works, I know. But I do not need to load the whole
> framework for just the data manipulation. What file is missing to load?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/SC86H6UDa7oJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to