Topic: Find all records for a given month
I have a WorkOrder model with a "start" attribute (date column). The start column holds the date that the work order was started.
My route looks like "/calendar/:year/:month"
So, given 'params[:year] = 2006' and 'params[:month] = 12', what would be a clean set of conditions to find all the work orders within that month?
WorkOrder.find(:all, :conditions => ['start ... ?', ...])