title: Time difference in words using Ruby ActiveRecord Timestamps
body: <p>I'm building an application using Postgres and Ruby Gem <code>ActiveRecord</code>.</p>
  
  <p>When a user data is being stored in the database, I'm keeping track of the time it was created by using the <code>timestamps</code> method that gives me a <code>created_at</code> field.</p>
  
  <p>I'm looking for a way of calculating the time difference from created_at timestamp till now and present it as a text like so:</p>
  
  <p><em><strong>"23 minutes ago"</strong> or <strong>"16 hours ago"</strong> or <strong>"2 months ago"</strong> or <strong>"last year"</strong>.</em></p>
  
  <p>Any help or direction will be much appreciated.  </p>