Created
October 19, 2011 12:58
-
-
Save ysr23/1298211 to your computer and use it in GitHub Desktop.
distance_of_time_in_words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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