switching to rails app