What’s the simplest way to make sure models trim leading and trailing white space from string values.
One inconvenient way seems to be a before_save filter — although for something as common as removing white space from strings, maybe there’s some config that does that?
Use the
strip_attributesgem:https://github.com/rmm5t/strip_attributes