moving app to rails