converted to rails app

initial rails app commit