Convert gitory to rails app