Displaying 1 result from an estimated 1 matches for "weekofyear".
2006 Oct 23
1
find method use without sql in mind
I have a class Day with field date that represents a my sql date type,
YYYY-MM-DD. The Ruby type Date class has method, cweek, that returns
the calendar week that corresponds to a particular date. Ruby knows
cweek, but MySQL has no knowledge of this value. How do I run a find on
class Day, (Day.find :all ... ) with condition [date.cweek = ?, week]?
This is not a sql search but a Ruby