My users input american formatted dates (mm/dd/yyyy). When the model is saved the date attributes turn to nil:
my_model.start_date = "07/30/2011"
puts my_model.start_date
nil
I get an invalid date error if I do this in the console:
Date.parse("07/30/2011")
How do you force the app to accept american date format? I know the app should handle localization correctly but a patch is what I need for the short term.
I found a gem that does the same thing and all you have to do is put this in your gem file:
I know this is a sort of old post, but i figured this may help other people and is a little easier than the monkey patch.