update to rails3