Update to rails 3