converted to rails app