Comment by hinkley Comment by hinkley 5 days ago 2 replies Copy Link View on Hacker News You could use a better string interpolation tool that replaces, “0 days ago” with “today”.
Copy Link jaggederest 5 days ago Next Collapse Comment - ActiveSupport still has a wonderfully readable implementation:https://github.com/rails/rails/blob/b0c813bc7b61c71dd21ee3a6...Though I don't really use Rails that often any more, I still miss some of the niceties. Reply View | 0 replies
Copy Link ralferoo 2 days ago Prev Collapse Comment - If something was less than 24 hours ago, there's a good chance that it was actually be "yesterday" rather than "today".The peer post linking to someone else's solution that uses size appropriate scales seems better. Reply View | 0 replies
ActiveSupport still has a wonderfully readable implementation:
https://github.com/rails/rails/blob/b0c813bc7b61c71dd21ee3a6...
Though I don't really use Rails that often any more, I still miss some of the niceties.