search for: unrailslike

Displaying 1 result from an estimated 1 matches for "unrailslike".

2007 Nov 20
1
:allow_nil validation vs. blank?
...llow_nil=>true setting on a validation? it fails because blank is not the same as nil. i would expect either returned empty fields to be nil, or :allow_nil to really be :allow_blank. otherwise i have to do a search through params every time i do a create/update to convert blank to nil. totally unrailslike. someone straighten me out please... thx - mike --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@publi...