change files extension required to rails 3 compatibility