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
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
I've got a route that handl...
Seems like this method coul...