on a windows xp pro box...
test controller:
require "Date"
class DateController < ApplicationController
def index
d = DateTime.parse("2006-01-01")
end
end
results in the error
ArgumentError in DateController#index
invalid date
in irb however it is fine:
irb(main):001:0> require "Date"
=> true
irb(main):002:0> DateTime.parse("2006-01-01")
=> #<DateTime: 4907473/2,0,2299161>
what''s going on?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---