switch to rails3