search for: scottmoonen

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

2010 Jun 25
3
Best practice for removing leading and trailing whitespaces
...ters have leading and/or trailing whitespaces which are causing problems (e.g. new resources being created rather than using the old ones). I don''t want to put the code in all the controllers to strip the whitespaces for different resources/params. I did find the following pattern: http://scottmoonen.com/2009/05/08/rails-pattern-trim-spaces-on-input/ Is there another better approach to solve this? I was thinking of configuring controller xml parser to remove these whitespaces. Is that possible? Thanks, -Rakesh -- Posted via http://www.ruby-forum.com/. -- You received this message because y...