search for: set_empty_to_nil

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

2005 Dec 20
2
Null Text Fields
I tend to allow nulls in cases where the value is unknown, even if it''s a text/varchar field. RoR seems to push empty strings into these fields. Is there any way to get RoR to use NULL vice '''' if the input box is empty? Thanks! - Ian