implementing soundex algorithm

how can i implement soundex algorithm in rails app??
my database is mysql
I want to search a particular table's data using soundex

Model.all(:conditions => [“SOUNDEX(my_field)=?”,soundex_string])

or

Model.all(:conditions => [“my_field SOUNDS LIKE ?”,normal_string])

It’s all right there in the mysql manual: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html

Best regards

Peter De Berdt