rails3 application for replacing text by Ruby regex