On Tue, Aug 19, 2008 at 4:58 AM, Chris Cruft <[EMAIL PROTECTED]> wrote: > Putting the burden on ActiveRecord to massage the crap it is handed > into something meaningful seems out > of place. Why not fix the problem at the source and get > ActionController to return meaningful values from empty form fields?
I agree. This follows the guideline of "validate early", which is generally a good one. Also, it makes sense to handle it early if you were to use another persistence layer. This is a UI-layer problem, solve it close to the UI. -- Chad --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-core@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---