On Sep 21, 2011, at 8:53 AM, dklopp wrote:

> You could check this thread 
> https://groups.google.com/forum/#!msg/hobousers/ofT7uwObOHc/ja1c2A809eEJ
> 
> Or you could rewrite convert_type_for_mass_assignment to handle invalid 
> dates. (Put something like the attachment in ..\config\initializers)
> 

Code similar to this is now in the rails3 branch. The one gotcha is that it now 
handles invalid dates by converting them to equivalent valid dates - thus, 
setting a field to February 31 will actually result in March 3 being stored. 
This is identical to the behavior of the default Rails helpers, and is at least 
less user-hostile than blowing up with a 500 page.

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to