On 5/26/07, Michael Koziarski <[EMAIL PROTECTED]> wrote: > > > I'm happy to put together a patch if everyone is happy with that soution...? > > Another thing to check is if it's feasible to make the form helpers > only use _before_type_cast if the field is invalid? Perhaps that'll > allow for a relatively low-impact solution? >
This would mean that if there is a validation error in some other field, the typecast value gets displayed back to the user. We are using Chronic for date parsing - I don't want the shiny natural language date that the user entered to disappear halfway through the validation process. Maybe only use before_type_cast if there are _any_ validation errors for the current submission? I don't think there's anything wrong with the current approach, but I agree that the documentation could be clearer. --max > > -- > Cheers > > Koz > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
