My user just got bit by this problem (in my rails version 2.0.2 app):
That is, if you use the date_select generated list boxes to select a nonexistant date like say, April 31st, you get a stack trace like this here:
You get the same exception if you
So... is there some particularly good place to fix this? I can certainly pull the date components out of params in my controller, try a Date.parse() on them & give the user a better error message. But I've got date_select's in lots of different places in my app & would love it if I could just fix it in one spot...
I've looked in the attributes=() method in ar:base, but am a bit daunted by it--have a hard time imagining I'm going to do more good than harm in there...
Anybody got ideas for me?
Group Health Center For Health Studies (Cancer Research Network)
Google Talk: rpardee