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 ?
This is not a sql search but a Ruby search of all Day objects and their
corresponding date.cweek attribute.
How do I write this find method call?