Skip to content

Wraps the DateJS library for use with the Rails Asset Pipeline

License

Notifications You must be signed in to change notification settings

cowboyd/datejs-rails

 
 

Repository files navigation

datejs-rails

datejs-rails wraps the datejs library in a rails engine for simple use with the asset pipeline provided by rails 3.1. The gem includes the fork of Datejs maintained by Eric Lindvall

datejs extends the Javascript date object to allow for simple date parsing, calculation, and formatting.

Usage

Add the following to your gemfile:

gem 'datejs-rails'

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

//= require date

This will require the en-US version of datejs. All other localizations are available as well. For instance, you could instead:

//= require date
//= require date/fr-FR

Optionally, require extras.js for strftime-style FormatSpecifiers.

//= require date/extras

About

Wraps the DateJS library for use with the Rails Asset Pipeline

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 80.5%
  • JavaScript 19.5%