Timeago JQuery plugin for Rails.
Please be aware that this gem is deprecated and will no longer be maintained. There are other, better, options for including javascript libraries and other assets in Rails projects now. (e.g., rails-assets, yarn, webpack)
Add the gem to you Gemfile with:
gem "jquery-timeago-rails"
And run bundle install
to install the gem.
Then add it to app/assets/javascripts/application.js with:
//= require jquery.timeago
jquery-timeago-rails 1.4.1 == jquery.timeago.js 1.4.1
The major, minor, and patch will always match the library. If a gem fix is needed in between library versions then a 4th version numbers will be added.
Thanks to Yarp and Ryan McGeary for releasing and maintaining the timeago library.
Copyright 2015 SugarCRM Inc., released under the MIT License.