updating to rails 3