1
2
3
4
distanceOfTimeInWords: function(to, from) {
  seconds_ago = ((to  - from) / 1000);
  minutes_ago = Math.floor(seconds_ago / 60);
...

Ruby On How to make time_ago_in_wor...

by makenai, April 10, 2008 21:54

In the rails version the nu...

501dac4c25141b9ecffecf6819fe086b Talk