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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2006-Oct-17 15:31 UTC
Re: Automatically stripping whitespace from form fields?
> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 Frankovitz
2006-Oct-17 16:04 UTC
Re: Automatically stripping whitespace from form fields?
String#strip should do it. See api.rubyonrails.com. good luck, -Jason -- Jason Frankovitz - jfrankov at pobox dot com main 310-601-8454 cell 415-254-4890 On Oct 17, 2006, at 6:18 AM, Jason Bowerman wrote:> > 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 > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Mark Reginald James
2006-Oct-17 22:13 UTC
Re: Automatically stripping whitespace from form fields?
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 -- We develop, watch us RoR, in numbers too big to ignore. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---