Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Wraps the DateJS library for use with the Rails Asset Pipeline
Ruby
branch: master

This branch is 4 commits ahead, 14 commits behind derekprior:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
vendor/assets/javascripts
.gitignore
MIT-LICENSE
README.md
datejs-rails.gemspec

README.md

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 last official release of datejs, which is from 2007.

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-fr-FR

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

//= require datejs-extras
Something went wrong with that request. Please try again.