Skip to content

Instantly share code, notes, and snippets.

@ysr23
Created October 19, 2011 12:58
Show Gist options
  • Save ysr23/1298211 to your computer and use it in GitHub Desktop.
Save ysr23/1298211 to your computer and use it in GitHub Desktop.
distance_of_time_in_words
irb(main):062:0> puts time_start.class
ActiveSupport::TimeWithZone
=> nil
irb(main):063:0> distance_of_time_in_words(time_start, Time.now)
NoMethodError: undefined method `distance_of_time_in_words' for main:Object
from (irb):63
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands/console.rb:44:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands/console.rb:8:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.9/lib/rails/commands.rb:23:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment