validating a date is a Monday

I'm trying to do this...

def validate

 errors\.add\_to\_base "requested start date must be a monday" if

requested_start_date != Chronic.parse('monday')

end

Not working though - this fails vaildation all the time (regardless of
whether the date is a monday or not)

Chronic.parse('monday') returns a particular monday (looks like next
monday), what else could it do. As a result your code doesn't check
that the day of week is monday, it checks whether it is a particular
monday at a particular time. You should look at the wday method on
Time/Date, which returns the day of week.

Fred