change to rails 3