On Tue, Nov 6, 2012 at 4:30 AM, PierreW <[email protected]> wrote:

>> require 'active_support/all'
>> Time.zone.parse("2012-10-20")
> NoMethodError: undefined method `parse' for nil:NilClass

> Time.zone.parse works absolutely fine in a Rails console.
>
> I am not sure what step I am missing. What is Rails doing to let us use this
> function directly?

Setting Time.zone to a value so it's not nil  :-)

-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to