small rails app with ajax