Displaying 1 result from an estimated 1 matches for "week_start_d".
2009 Jul 02
7
Params Merge and URL sorting/pagination
...f datevar.empty? || datevar.nil? ||
DATE_VALIDATE_REG.match(datevar).nil?
# we need to convert datevar to time and find the beginning of that
week for scope comparison
convert_time = datevar.to_time.beginning_of_week
# we need to reconvert the time back to a readable week start date
week_start_date = convert_time.to_date.strftime(''%Y-%m-%d'')
# using our named scope to checked for compiled_on which is a date
type column to search within specified date ranges
named_scope :compiled_on_week, lambda { { :conditions =>
[''compiled_on >= ? and compiled_on &...