tmlee / time_difference

The missing Ruby method to print out time difference (duration) in year, month, week, day, hour, minute, and second.
https://rubygems.org/gems/time_difference
MIT License
305 stars 92 forks source link

NoMethodError for humanize #23

Closed thrgamon closed 7 years ago

thrgamon commented 8 years ago

Hey,

Tried to do this within a rails 4 project.

time_difference = TimeDifference.between(Time.now, departure_time).humanize

But returned with this:

NoMethodError (undefined method `humanize' for #<TimeDifference:0x007fa4a59cbf48 @time_diff=14140786.331287146>):

The gem seems to be working fine otherwise.

I am using ruby 2.3

Tom

tmlee commented 7 years ago

@thrgamon I published a new build at rubygems https://rubygems.org/gems/time_difference Give that a go, otherwise try installing from the master branch first if it does not work.