Automatically stripping whitespace from form fields?

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

Jason B. 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


We develop, watch us RoR, in numbers too big to ignore.

String#strip should do it. See api.rubyonrails.com.

good luck,
-Jason


Jason F. - jfrankov at pobox dot com
main 310-601-8454
cell 415-254-4890