need to convert whole letter in uppercase

Hi     I need to convert whole user entered text in my whole project into upper-case and also save it as a upper-case letter in database.If any one knows please help.

Ruby has an upcase method which should help you out

Ruby has API docs. really.

read about the upcase method

I need to put the code in only one place and it should effect all so where should i put...