Hi
Is it possible to automatically strip whitespace from form the begining and end of fields?
Is there a setting, filter or plugin somewhere?
thanks
Hi
Is it possible to automatically strip whitespace from form the begining and end of fields?
Is there a setting, filter or plugin somewhere?
thanks
Is it possible to automatically strip whitespace from form the begining and end of fields?
Is there a setting, filter or plugin somewhere?
You could write a before_filter and put it in application.rb which looped through params and stripped each entry it found....
-philip
Hi,
Due to unanticipated family issues, I've got a ticket but am not going.
I paid $125; I'd be willing to give sell it to someone for the same.
Bill
String#strip should do it. See api.rubyonrails.com.
good luck, -Jason
Jason Bowerman wrote:
Is it possible to automatically strip whitespace from form the begining and end of fields?
Is there a setting, filter or plugin somewhere?
http://wiki.rubyonrails.org/rails/pages/HowToStripWhitespaceFromModelFields