search for: woonplaat

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

Did you mean: woonplaats
2006 May 02
4
useful bit of code (hopefully)
...perhaps it''s useful for others, or others can improve on it: ########### # fix user input before validating it before_validation :sanitize_input # santize input before actual validation is called # this uses the little methods defined below def sanitize_input trim %w(adres postcode woonplaats email naam telefoon mobiel) downcase :email empty_to_nil %w(telefoon mobiel) end # pass in a list of fields whose values will be converted to nil # you should only use these on objects that respond to empty? # if the value is empty (this causes empty strings '''' to be...