Gen the rails app