GitXplorerGitXplorer
d

datejs-rails

public
19 stars
10 forks
0 issues

Commits

List of commits on branch main.
Verified
3892b90190bad6f5c408429740e4242498b24464

Add archival note

dderekprior committed 3 years ago
Unverified
860ef11ece58669d2ab2699cb1d0d316a8dfff35

updated to 2.0.1

dderekprior committed 12 years ago
Unverified
b39441bbae94b247e369222a27ee2986324d2fc6

Add bundler tasks to rakefile

dderekprior committed 12 years ago
Unverified
d4c427b77a2972102aea3dacb3b85a54b8160601

Should be ready for raile 4.

dderekprior committed 12 years ago
Unverified
ea2604aff5f54f0bca083c446782ed41bebe9602

Pulled in cowboyd's fork.

dderekprior committed 12 years ago
Unverified
741c0698cf4227c2e596c77fb24dc7a0a2f30780

update README to reflect differences in this fork

ccowboyd committed 12 years ago

README

The README file for this repository.

datejs-rails

datejs-rails wraps the datejs library in a rails engine for simple use with the asset pipeline provided by rails 3.1. From version 2.0 onward, 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.

Archived

There are a number of more suitable ways to work with Dates in JavaScript these days, as well as a number of better ways to work with JavaScript in Rails. This projects in now archived and will see no more releases.

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