Skip to content

Instantly share code, notes, and snippets.

@adelevie
Created July 19, 2010 22:43
Show Gist options
  • Select an option

  • Save adelevie/482161 to your computer and use it in GitHub Desktop.

Select an option

Save adelevie/482161 to your computer and use it in GitHub Desktop.
>> foo.later_date = 1000.days + foo.created_at
TypeError: ActiveSupport::TimeWithZone can't be coerced into Fixnum
from /home/adelevie/ruby/gems/gems/activesupport-2.3.5/lib/active_support/time_with_zone.rb:309:in `+'
from /home/adelevie/ruby/gems/gems/activesupport-2.3.5/lib/active_support/duration.rb:22:in `+'
from (irb):8
>> foo.later_date = foo.created_at + 1000.days
=> Mon, 09 Aug 2010 18:37:04 EDT -04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment