momentjs_precise_range-rails

This gem supplies the moment-precise-range plugin for use with momentjs-rails in Rails.

momentjs-rails must be installed to use this plugin.

(momentjs-rails wraps the Moment.js library in a Rails engine.)

moment-precise-range is a MomentJS plugin for precisely displaying time ranges in a human readable format.

Moment.js is "a lightweight javascript date library for parsing, manipulating, and formatting dates." Moment.js does not modify the native Date object. Rather, it creates a wrapper for it. Please see the documentation for details.

Usage

Add the following to your gemfile:

gem 'momentjs_precise_range-rails'

Add the following directive to your Javascript manifest file (application.js):

//= require moment-precise-range

Acknowledgements

The content of this repository was heavily ~~stolen~~ borrowed from momentjs-rails