class Article < ActiveRecord::Base # Find all articles in the given date range based on the published_at field ...
has_many :expenses, :dependent => :destroy do
def for_week(day)
find(:all, :conditions => { :spent_at => day.to_time.beginning_of_week.to_date..(day.to_time.beginning_of_week.to_date + 6)})
...
Ruby Finding all in a date range...
So my User has an associati...
I've got a route that handl...