> > > Hello,
> > > I needed to do some date calculations in JS for a project I'm
> > > working on so I ported the numeric time extensions from Rails to
> > > JS. Now I can neat things like this: ((3).weeks() + (2).hours() +
> > > (15).minutes()).fromNow().toDate()
> > >
> > > Read more:
> > >
> http://burnfield.com/martin/2006/09/15/rails-time-extensions-ported-
> > > to-javascript
> > >
> > >
In a similar style I added the number percentage and
number_to_human_size helpers:
http://rails.techno-weenie.net/tip/2006/5/21/number_percentage_and_human_size_implemented_in_javascript


-- 
Rick Olson
http://weblog.techno-weenie.net
http://mephistoblog.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to