1
2
3
4
def date(date, time = false)
    date = Date.parse(date) if date.is_a? String
    day = date.strftime('%d')
...

Ruby Human Date Method

by bazookaaa.myopenid.com, July 05, 2008 07:51, 5 refactorings, tagged with date, time

Seems like this method coul...

75fce382ae1f51533ea890ef92dcb47b Talk
1
2
3
4
class Article < ActiveRecord::Base

  # Find all articles in the given date range based on the published_at field
...

Ruby Building a dynamic date range

by claytonlz, May 08, 2008 23:45, 2 refactorings, tagged with date range, date

I've got a route that handl...

E17d936d4535519716b6e810052feac5 Talk